Jump to content
  • Advertisement
Sign in to follow this  
cclyde

Slopes in a 2D tile based platformer

This topic is 3553 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

Hello, Im trying to figure out a good method for adding slopes to a tile based platformer, but I have not found any relevant articles. The only thing I could think of was to define a slope variable for every tile, then somehow mathemagically combine the specified slope angle, the height of the tile, and how far onto the tile the player is, then add that number to the player y. This method seems bug ridden and overly complex, I'm sure there must be an easier way. Thanks

Share this post


Link to post
Share on other sites
Advertisement
Well there's a series of tutorials on making a 2D platformer over here:
http://jnrdev.72dpiarmy.com/

One of the things he does is make slope tiles. You can download and run the demo too. I haven't made anything like this yet but it should be some help.

Share this post


Link to post
Share on other sites
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!