Then player changes direction say from right to left and both keys are pressed, on left release - animation stays left (player moonwalks).
Maybe there is a way around forcing animation change in such a case?
Thanks for replays.
Change keys from "pressed" to "is down" and toggle both conditions back to enabled.
Develop games in your browser. Powerful, performant & highly capable.
<img src="smileys/smiley18.gif" border="0" align="middle" />
I need a coffee brake.