How to create an animation with an object in the game?