Background: Instead of the glitch garden assets, me and a friend are creating Food vs. Fans, where fans are the attackers. I am making a stand up fan jump into the air and rotate 90 degrees to act as if it is smashing the defender. Stopping works while attacking.
Issue: during the in-game time, the attacker will slowly move a tiny bit up and a tiny bit to the left. I checked that the speed of the attackers remains 0. I checked that the first and last frame of the attack animation is the same (0,0) so there is no movement. I double-checked the transition of animation and that the animation wasn’t playing a different animation at the end of each loop.
Some more observations: If I set the x and y in the final frame to be 1 unit in the opposite directions (down and to the right) it will move down and to the right. A temporary solution would be to find a balance to counteract the movement, but I would like to figure out the core issue to improve my understanding and know that this issue will not resurface later on.
Lastly, the movement to the left and upward changes, it’s not always constant. For example, the movement is sometimes shifting to the left by .01, sometimes it’s by .1 so my suggested solution above wouldn’t even completely fix it.
Thanks for your time!