Slides
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
having alt=(sub
create slide as slider
where speed=100 direction=95 easein=20 easeout=20 distance=100
end)
end
- completion={routines}
- a routine to run when the slide is complete.
- direction={number}
- the direction to travel without regard to the sprites current angle.
- distance={number}
- how many pixels to travel (optional).
- easein={number}
- gradually increase speed over this distance.
- easeout={number}
- before reaching distance, gradually decrease speed over this distance.
- speed={number}
- move in pixels per second.