code-game-jam-drop-plafond-.../scripts/Instrument/onde.gd
2025-01-25 01:44:33 +01:00

14 lines
240 B
GDScript

extends Area2D
var timer = 0.0
var cooldown = 0.33
func _process(delta: float) -> void:
timer += delta
if timer >= cooldown:
queue_free()
func Collision(body: Node2D) -> void:
if body.is_in_group("Enemies") :
body.take_damage(2)