Jump to content
  • Advertisement
Sign in to follow this  
The_Thinker

Moving Platforms in XNA using a Tiled Map

This topic is 2340 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I am trying to create a platformer which uses maps created in Tiled. In order to create moving platforms, I am replacing the tiles with sprites. Each tile representing the moving platforms has a data value between 100 and 107. When the game loads the map, any tile with that value will spawn a sprite in its place, and should remove/prevent the tile itself from being loaded.. However, I can't seem to find any way to remove the original tile, which leaves a copy of each platform sitting behind the platform as it moves - can anyone help me to remove the tile?

The second problem is that, while the tiles move, my character does not move with them, which could work if I wanted them to be "ice" platforms, but I'd like the player to move with the platform. I tried adding friction to the platform sprite but it didn't work.

Thanks all!

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!