Cooldown when a enemy hit me

Im trying to do a game like The Binding of Isaac, but when an enemy hit me I want to do an animation with the opacity of the character, like in Mario, when you´r hit you have a little bit cooldown to hit you again. How i make the animation?


Since you’re just asking about how to do the animation, there’s two ways you can go. You can use the tween behavior to interpolate between full opacity and back.
Or (simply) you could use the flash(blink) extension. Go to the project manager, click on “Search for new extensions” and look up flash(blink). Then you’ll be able to use that in the event sheet.


1 Like

Really thank you! im gonna try now!