The Slide alteration will cause the sprite to move in the direction given for the given distance.
create routine as Start launch slider end
create sprite from horse12.png as slider
where x=100 y=100
create slide as slider
where speed=100 direction=95 easein=20 easeout=20 distance=100
- a routine to run when the slide is complete.
- the direction to travel without regard to the sprites current angle.
- how many pixels to travel (optional).
- gradually increase speed over this distance.
- before reaching distance, gradually decrease speed over this distance.
- move in pixels per second.