DigiScript
02-05-2001, 09:27 PM
In the Mask follows Mouse tutorial, what exactly is happening here?
// Move the masked object by exactly the opposite amount
this.masked_object._x = (20-x);
this.masked_object._y = (30-y);
I assume it means exactly the opposite amount as the mouse, but I don't get it... where does the 20 and 30 come from?
And if the mouse is at 400, 100, shouldn't the object disappear by going to -380, -70??
I know this is simple, so why can't I understand it ....?
// Move the masked object by exactly the opposite amount
this.masked_object._x = (20-x);
this.masked_object._y = (30-y);
I assume it means exactly the opposite amount as the mouse, but I don't get it... where does the 20 and 30 come from?
And if the mouse is at 400, 100, shouldn't the object disappear by going to -380, -70??
I know this is simple, so why can't I understand it ....?