So you can change the speed also, make a variable, (speed). Using the equation, speed = distance / time (where distance is 480 pixels [the width of the stage]), we can change the speed of the sprite.
forever set x to (-240) set y to (pick random (-180) to (180)) glide ((480) / (speed)) secs to x: (240) y: (y position)Try changing the speed variable and see what effect it has and adjust it how you want. Setting x to (-240) will reset the sprite to the far left of the screen every time it reaches the right side. Picking a random Y value will mean that it appears at a different location on the same side of the screen every time as required.
Offline
showThis will show a sprite on the stage.
hideThis will hide a sprite on the stage.
set x to [-240] glide (2) secs to x: (240) y: (any value)Hope this helps you
Offline