damage.gd 218 B

1234567891011
  1. extends Area2D
  2. export var damage = -1
  3. func _on_Timer_timeout():
  4. queue_free()
  5. pass # Replace with function body.
  6. func _on_damage_player_body_entered(area):
  7. area.damage( damage)
  8. pass # Replace with function body.