I
Inamortus
Guest
Hey all,
I've been working on a project, and have added the sprites I've made into the game, but I can't figure a way to change the sprite based on the mouse postion, ie. changing the sprite index to be spr_playerUp if the mouse's position is above the player, to spr_playerRight if it is to the right of the player. Anything I've found while searching for a solution is purely for rotating the character to follow the mouse, which obviously isn't what I want with a 4-Directional sprite.
Would anyone be able to help me out with this?
Thanks in advance.
I've been working on a project, and have added the sprites I've made into the game, but I can't figure a way to change the sprite based on the mouse postion, ie. changing the sprite index to be spr_playerUp if the mouse's position is above the player, to spr_playerRight if it is to the right of the player. Anything I've found while searching for a solution is purely for rotating the character to follow the mouse, which obviously isn't what I want with a 4-Directional sprite.
Would anyone be able to help me out with this?
Thanks in advance.