My script will not open in the 2d viewer?

thank you so much, so instead of using 2 different functions i can just use 1?

instead of using 3 different functions you can combine them into 1.

The full sample would’ve been

func _input(event: InputEvent) -> void:
	damage(event) # call damage
	restart(event) # call restart

func damage(event): # defines damage
	# etc...

func restart(event): # defines restart
	# etc...

Make sure to paste code instead of screenshots

1 Like

thank you very much