How to make platforms all work

So I’m making a game with moving platforms. I figured out how to
make a sprite sit on another. But it only works on the first moving platform
and not the rest. Help would be greatly appreciated. Thanks.

1 Like

It’s because of this code

you set it so mysprite x and v velocity are the platforms, which is good but you set it to the latest created platform, which is why it only works for the first platform you encounter. To fix this you probably have to create a function. In this function add a sprite variable. Put the code in the screenshot into the function now if you added a sprite to the function drag at the red oval that says sprite or if you changed it to whatever you changed it too. then put the dragged out oval into the MovingPlat’s vx and vy place.

Can you show a picture because I don’t know what you mean by what you said.