I tried this way.
When walking to the right, it is fine. But for the other sides it ends up upside down. I've tried every way.
Develop games in your browser. Powerful, performant & highly capable.
Hope this helps, I´ve simplified the process but you can use the "direction" variable you used before if you want <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">
https://www.dropbox.com/s/yz0erazuy2co9 ... .capx?dl=0
EDIT: added screenshot just in case
Can you fix this?
https: //www.dropbox.com/s/bn80vyzjknkqeb0/Icant.capx?dl=0
Someone help me? ç.ç
I made a similar topic a little while ago; read up and see if you like it.
The method doesn't check for collisions with solid objects; you'll have to code that in yourself.
You looked my example? Does your way, you can put animation 4 directions at the enemy? One that works?
Here you are, done
https://www.dropbox.com/s/fauhz5a0fwkwk ... .capx?dl=0
<img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">
Oh man, thanks. You helped me a lot.