Different way?

ok i paused where declared to, and i ended up stopping the animation, but in a different way

inside the “ground check” if statement, inside the else section, i put ’ frame = runningTime ’ and it worked fine. is this an okay way to execute that? or would putting it into another if statement be better? the only difference i was able to notice, was when jumping, it always chooses the default sprite (0 in this case).

im gonna follow the video and put it into the new if statement but im just curious if my way was okay

I wouldn’t say this is a bad way of getting the result, but if you know the result is the 0 frame and this is what you want then you’re better off with frame = 0 as this would be easier to read in the long run.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms