Volkanite / Ascendio

Creatores Magnifico's first platformer game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add player reset fade/flash

Volkanite opened this issue · comments

When the player dies, he just resets to the start of level. Make the player blink three times. Flash the player, something...

Could we just have a sprite animation for death. Something simple like the sprite being engulfed in white light

There is a more codey way on stack overflow but yea 🤔. https://stackoverflow.com/questions/30245155/pygame-flashing-sprite-after-damage or we can pull up the sprite sheet and animate the sprite being engulfed in white light

That code on Stackoverflow looks reasonable. It's basically setting the image item to none (so the player disappears) and then setting it back to normal. You can probably use a timer for setting it on/off as doing it too fast, you wouldn't even realize it. See the sprite animation functions for help:

if now - self.last_update > 90:

Yeah this is turning out to be a challenge. O.O.Still going at it