hi
Ive come to the point where I can have enemies that can die when the player jumps on them…they also have animations using my class ImageMultiAnimationSprite.
I need some way to implement different actions…so that the enemies can jump or fire or walk…but Im not sure what classes i could make. Maybe i need to make some ai thing in the Game class so that every “tick” it can go throug all sprites and call their methods. But should the sprite itself decide its action or should the action be set like sprite.setaction(jump)
or maybe the sprite could just decide itself?
im kind of stuck here so if you have an idea il be glad to hear it