Variable update will show us the difference between value in variable click and the current position of the mouse. A variable click will be acquired only once when button was pressed and as long as the button is pressed our variable will not change even if we drag the mouse. Variable update will change if we drag the mouse, because frame 2 will acquire position of mouse by GetProperty action, then will go to frame 3, that will send it back to frame 2 where the new position of the mouse will be read, and variable click (that was acquired when we pressed the button was not changed since then) will be deducted, so variable update will show only how many pixels the mouse was moved since button was pressed. In the same moment when mouse is pressed, update will be 0, moving to the right will have positive value, moving on the left will have negative value.
| » Level Intermediate |
|
Added: 2001-03-13 Rating: 6 Votes: 80 |
| » Author |
| No details available. |
| » Download |
| Download the files used in this tutorial. |
| Download (461 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!