A little problem with controls.
Hey community!
So yeah, movement in my game is very simple. I only need to move right and left. So I choosed platform movement, and have only two initial directions.
But I need to make my character turn front and back. So I did two animations for these, and upon pressing arrow up and down it plays the animation.
Works well, so no problem here.
But then the problem is that if I keep holding walk button to right for example, and tilt arrow up and keep holding the walk button. My character plays the animation where he looks up, but keeps sliding to the right.
It looks really dump.
I have set that upon pressing the right arrow, it changes to basic walk animation. It works but not when I slide around.
So I need a way to fix this. Was thinkin if I could allow only one arrow key to be pressed at time. Could avoid this that way.
Any idea how to get around this? :)
Thanks!
- Jesse