what I mean is:
- a sprite has a behavior, e.g. a custom movement
- a mouse event, Cursor is over this sprite, triggers an action:
- accellerate toward positon x,y
Now I want, that the movement stops, when the sprite reaches its position.
To make it more clear: I try to create a smooth, fly out menu like effect.
If the cursor is over a sprite, it becomes visible and flies out and when the cursor moves out, it becomes invisible again and flies back.
Thanks for help!