Hello i am implementing my game touch screen buttons and i have a problem.
i need the button to be disabled for 2 seconds before it can be pressed again but i cannot seem to fix this issue.
i have tried setblocksignals(true) but it did not help.
this is my code. thankyou.
func _on_fire_button_pressed():
set_block_signals(true)
$Timer_1.start() func _on_Timer_1_timeout():
set_block_signals(false)