I have a sprite with platform behavior following a pathfinding object in the X axis and I am trying to find a way to switch the sprite frames to match the direction it's moving. I have the jumping and falling working I just can't find a way to get left and right. Using "Platform.MovingAngle" isn't working. Thanks for taking a look guys.
http://dl.dropbox.com/u/9299424/html5/index.html
<img src="http://dl.dropbox.com/u/9299424/dir.png" border="0">