I know how to make a sprite follow a path but how can I change the angle of the sprite when I accend or decend a hill for example?
<img src="http://dl.dropbox.com/u/56065906/images/example-image.png" border="0" />
Develop games in your browser. Powerful, performant & highly capable.
are you using the physics behaviour?
I guess you should make 2 instance variables for player, X and Y last positions, then if X and Y goes right diagonal like X+ Y- while on floor, the action should be like Cos(angle) and Sin(angle) it could it make smooth angle
wretchedshark, I am using the platform behaviour.
joannesalfa,I haven't considered that. Do you know of any examples out there that can help me?