I have a sprite that has 10 animations (labeled 1-10) and I want the game to pick the animation based on an Instance variable so if the variable is set to 5 the animation it will play is the one labeled 5.
Is this possible or do I need to create 10 "If instance variable = X then set animation to X" events?