How do i make more than one platform move?

I have been working on this game for a little while and i finally figured out how to make a platform move but I don’t know how to make all the platforms move. Can someone pls help. If someone knows how to do this can you send a picture of what the code should be.

here is my game :arrow_down:

5 Likes

you should first get a for element loop in the on start and then you should drag the array array of all tiles location block to replace the list in the right parameter in the for loop. Last step put all the code that makes the tile move inside the for loop and if you have get or set tile at location instead of keeping it as coordinates, change it as the for loops variable and pass it for the tile so it gets every tile that is this specific tile, if it is sprite, create a sprite and then use place on tile but instead keep coordinates, pass the variable parameter in the for loop to make every of this sprite at the tile. But if you really use sprites, I recommend use set tile at so you will not really be able to see the sprite is actually front of a tile just floating by just make a 16x16 tile and make it using velocities and make it allow to bounce or hit if it his a specific wall using on updates and loops, that is what I will say for now.