Moving Platforms/Tiles

Jun 12, 2012 at 7:35 PM

Hello everyone,

currently i attempt to make a platformer. Is there a way to make moving platforms / tiles because with the tile-animation tool of the tiDE is anything but smooth.

Is there a way to make smooth movement with the tile-animation tool or an alternativ way to do moving platforms?

thanks in advance

Coordinator
Jun 13, 2012 at 9:30 PM

Tile animation isn't intended for moving platforms, but rather for things like animated water, torches, swaying grass etc.

One way to implement moving platforms is to have them as special NPCs or entities. You can control their movement either by placing control tiles on an invisible layer, or perhaps as a simple script specified by a custom property like Anim="L4;D1;R4;U1" which would be a set of instructions to move left 4 tiles, then 1 tile down, then 4 tiles to the right and 1 tile up again.

You can implement collision detection with these platform entities, and have the player position lock to that of the platform until the player jumps off.

You can check this StackOverflow discussion as a starting point for more details.