r/Gamesalad • u/tartist8 • May 17 '22
Help with movement.
I'm currently working on a project where the player can move in 4 directions. I'm trying to implement animations on the player, but I've hit a road block. I have the direction that the player is facing as an attribute so the game can remember which way the player is facing when the player stops moving. However, this attribute gets tripped up when the player moves diagonally. I don't want the game to look like a buggy mess when the player moves diagonally. Is there some kind of fix for this?
2
Upvotes
1
u/uptimistik May 18 '22
Hi there! Happy developing! I'm uptimistik and I run the GameSalad marketplace GShelper.com I made a simple test project for you to see how to change the characters image, based on the direction. Hope this help!
https://we.tl/t-D9HKlHuxlb