Slopes in a 2D tile based platformer

Started by
1 comment, last by Spodi 15 years, 6 months ago
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
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.
There is also the tutorials for the flash game, N.
NetGore - Open source multiplayer RPG engine

This topic is closed to new replies.

Advertisement