Hi,
I am making a platform game and have added a level with moving platforms. My sprite can land on the platforms but falls off as soon as the platform moves away from him.
I'd like to add another level where he can stay on the platform and move with it.
I am struggling to make this happen - can anyone give me some advice on how to script this please?
Thanks!
Offline
You could try something like this - have the player hold down the space bar to "ride" the platform, then if touching platform and space key pressed point in direction of platform and move the same number of steps as the platform.
On the platform script, instead of having it change x/y by (n), make it point in direction of desired motion and move (n) steps. So the platform/player doesn't turn upside down, you can click the double headed arrow on the sprite at the top of the screen next to the sprite picture which locks the direction to right and left only.
That should work
"Offline