I did not think I would post this as I thought I had this one figure out. Well it turns out I dont.
Ive set up my manual 8 direction movement using events instead of the built in behaviour.
Now my code it as follows:
On Left press --> play "Left" animation
On Right press --> play "Right" animation
On Up press --> play "Up" animation
On Down press --> play "Down" animation
On any key released:
----> Invert Left is down
----> Invert Right is down
----> Invert Up is down
----> Invert Down is down
----------------------------------------->play animation "idle"
Now all is good apart from playing animations while the player is moving diagonally, ie. when up-left, up-right, down-left and down-right are pressed. Now when I press any of these the player moves alright but the animation is set as either top or down animation but as a frozen first frame.
Any idea how I can implement the diagonals in the code? Ive tried else, and loop nesting but couldnt seem to work this into my events.
Thanks for your time, this seemed such an easy task but I am stuck in the moment.
Is there any other way than using angles?