need sprite to follow the path of the tiles but stay touching the tiles.
-
In a platformer game, "%" is the tile and "S" is the sprite. I Need to make the sprite move around these tiles. So at "E", the sprite is upside-down and at "R" the sprite is not falling but moving in an upward direction back to "S". While moving around those tiles, I need the sprite to stay with the tiles as if gravity was in use.
S
%%R
%%%
E
-
You should implement a pathfinder algortihm.
You can get benefit from here: http://www.policyalmanac.org/games/aStarTutorial.htm
-
Check here, that won't compute gravity or anything, but you can have it give you a list of nodes to visit and figure gravity yourself.
-
This post is deleted!