Set the current animation of the game object obj to the animation anim. Animation will start from initial frame set in anim
obj The GameObject instance to set the animation for. Can use self
anim The animation object to set.
No return value
Animations are what lets us make our sprites move. To make animations you use something called a “sprite sheet”.
Sprite sheets are when you take multiple sprites, put them inside of one sprite and then get the game, in this case
PixelPAD2D to break the images up for us turning them into frame(s). Then once you do that you can tell the
engine to animate our objects for us by looping quickly through specific frames. Check out the methods and
examples below for more.