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