Files
hsgj25-growth/growth/cursor_bullet.gd

12 lines
199 B
GDScript

extends Area2D
@export var speed = 70
func _physics_process(delta):
self.position += speed * delta
func _on_body_entered(body):
if body.is_in_group("mobs"):
body.take_hit()
self.queue_free()