• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Recovery Time

A

AlexisSablay0

Guest
Hello !
I need a recovery time when the player get touch by a object.
When he get touch the variable safe = 1.
i want to make than when a sprite image like the 5 image is show the value safe = 0.
i don't know how to explain this but i need to know how put a action when a image of the sprite is show !
Thanks for your help :)
 

Gamebot

Member
Assuming you mean a time when your hit "invincible" for a short time.

1. An alarm or your own timer can set safe time.

2. For your player sprites use one of the following.

a.) image_alpha

b.) You might be able to change colors using shaders and interpolation (lerp).

c.) Simply color all your seperate sprites white change color and alpha.
 
Top