C
Codec080
Guest
Hello, this is my first post here.
I am working on a zelda-like game and I need your help with my movement
I have a player object. I can make it move it 8 directions with no issues except the sprites. I want my player object to keep the sprite of the direction it is facing before it starts moving in diagonal. I have 4 animations for walking north, walking west, east and south. If I go up, THEN diagonally to up-left or up-right, I'd like my sprite to be the north one... but I want my sprite to be the east one if the player pressed right, THEN up instead of up first.
Any help would be appreciated, I'll post my code if you need it.
thanks
I am working on a zelda-like game and I need your help with my movement
I have a player object. I can make it move it 8 directions with no issues except the sprites. I want my player object to keep the sprite of the direction it is facing before it starts moving in diagonal. I have 4 animations for walking north, walking west, east and south. If I go up, THEN diagonally to up-left or up-right, I'd like my sprite to be the north one... but I want my sprite to be the east one if the player pressed right, THEN up instead of up first.
Any help would be appreciated, I'll post my code if you need it.
thanks