In a catch game , i want to catch a moving sprite with mouse click.
I have an action "click" that i use for handling mouse input and execute a check function.
func _input(event):
if event.is_action_pressed("click"):
checkCatch()
I also added a code for starting the game whith a start button
func _on_BtStart_pressed():
$BtStart.hide()
emit_signal("start_game")
But when I click on button Start , my checkCatch() function is executed.
How can I prevent this this from happening?