Hit green flag to scan all sprite costumes (animation frames) INCOMPLETE (You may use and experiment with.) I made this to make a system that knows where you are facing and to speed up and slow down in animation. Also made it so if you run in one direction then turn in another the sprite will trip in that direction or skid and slow to make realistic animations.
In this demonstration I have a glitch that scans all names and frames you make and updates automatically next time you run the code. It also logs your current and last key and what position the spirit is currently looking.