|
Follow mouse Step event: Step towards point x:mouse_x y:mouse_y speed:99 Avoid: solid only
Drag Create event: execute a piece of code
| CODE | // In the create event drag = false;
|
Step event: execute a piece of code
| CODE | // In the step event if (drag) { x = mouse_x - xx; y = mouse_y - yy; } |
Left pressed: execute a piece of code
| CODE | // In the mouse button press event: drag = true; xx = mouse_x - x; yy = mouse_y - y;
|
Left released: execute a piece of code
| CODE | // In the mouse button release event: drag = false;
|
This post has been edited by demonlemon on Jun 9 2007, 10:37 PM
--------------------
|