61
Graphics / Animation......again
« on: September 04, 2011, 01:30:59 am »
Hello everyone. Ive made an animation class that inherits from sprite, and uses a subrect to change the frames. Im trying to make a class that holds multiple animation objects. However, the problem with this is that I can't use the functions of sprite with this object. For example say this class was called mario.
I could do Draw(*Mario.getPointerOfCurrentSprite)
but I cant do mario.move()
or mario.SetX() because each Animation(Sprite) has its own location. Any Help?
I could do Draw(*Mario.getPointerOfCurrentSprite)
but I cant do mario.move()
or mario.SetX() because each Animation(Sprite) has its own location. Any Help?