Wonsubon
Member
I have an object for the player with a script for the free state (there will be more scripts for other actions), and in the free state script it includes jumping, walking, crouching, and idle animations. For changing animations, I change the sprite index depending on the situation. The second longest animation is the idle itself at 16 frames, and the longest animation is one of the three possible idles to play sitting at 24 frames. Whenever an idle animation finishes playing, it returns back to the idle, and this applies to all but the one that is 24 frames long. Instead, that one seems to cap at the image index 15, the last frame of the idle, and it simply repeats the animation from the index 0 to 15 until you interrupt it by moving. Would I have accidentally written something in the code that makes it cap at 15, or is this a "natural" issue that has a method to fix so that the 24 frame idle goes through and finishes to return back to idle?