Slopes in a 2D tile based platformer
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
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement