Added function to query animation names from sprite. This is useful for game objects that may change their behaviour based on the animations at hand. Eg. I'm an NPC that has an animation for "walk", so I'm an NPC that can walk.