I’m learning ActionScript 3 (basically learning ActionScript properly, rather than my haphazard approach to AS1 before)
Today I have learned about event listeners, and have figured out for myself how to implement the modulo operator!
The linked walking clip is only 19 frames long, but modulo allows me to loop through them based on the mouse’s x position. Modulo sets the upper limit on the number by using remainders: if the x position is 23, after the modulo operation, the number given is 4.
Not the best explanation, but I feel very pleased with myself! Hooray!