I managed to get this working with a keyboard but i'm having some problems with the mouse
When i give it somewhere to go, and when it arrives it switches sides fast before it goes to idle ?!
(it might have something to do with the 8 way movement deceleration but changing the values doesnt solve the problem just makes it look a bit different)
what i'm i doing wrong.
gif of the problem
pic of the event sheet
also how could i go about adding more animation states like attack etc to this code
Develop games in your browser. Powerful, performant & highly capable.
nevermind, figured it out
replaced 8 direction movement with path finding and now it works like a charm