add hitboxes
This commit is contained in:
@@ -22,3 +22,12 @@ func _physics_process(delta):
|
||||
var movement = MOVEMENT_VECTORS[randi() % 4]
|
||||
move_and_collide(movement * 2)
|
||||
pass
|
||||
|
||||
|
||||
func _on_Hitbox_area_entered(area):
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
func _on_Hurtbox_area_entered(area):
|
||||
queue_free()
|
||||
pass # Replace with function body.
|
||||
|
Reference in New Issue
Block a user