• 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!
Status
Not open for further replies.

reipor

Member
I want to make a system for buttons that when you press them you have 5 seconds until it returns to normal

GML:
//create event
timerpressed = false

//alarm0 event
timerpressed = false

//step event

if place_meeting (x,y,obj_player){
    timerpressed = true
       
}
if timerpressed = false{
    sprite_index = botao_unpressed_04  
   
}

if timerpressed = true{
    sprite_index = botao_pressed_04  
}

if you could help me, i am new and i am still learning
 
Last edited:

Evanski

Raccoon Lord
Forum Staff
Moderator
eu quero fazer um sistema para botoes que quando voce os aperta vc tem 5 segundos ate ele voltar ao normal
I want to make a system for buttons that when you press them you have 5 seconds until it returns to normal
 
Status
Not open for further replies.
Top