In game loop, reset index to 0, go through 4 animations, then do something
can someone help me to show* all 4 images of the dying animation before setting to gameover*? it works for setting game over in the player class but when I try to set game over when walking on a trap (lava), it only shows the first animationindex and I don't know how to correctly show all images of dying and then set game over
Player
ObjectManager:
Player
ObjectManager: