forked from team-sg/hero-mark-2
scrump projectile disappears when it hits you
This commit is contained in:
parent
b7b96a7bd3
commit
5f93e9ef9c
1 changed files with 5 additions and 0 deletions
|
@ -3,3 +3,8 @@ extends "res://objects/enemy/enemy.gd"
|
|||
|
||||
func _physics_process(delta):
|
||||
position.x -= 80 * delta
|
||||
|
||||
func _on_Hitbox_area_entered(area):
|
||||
._on_Hitbox_area_entered(area)
|
||||
if area.is_in_group("player_hitbox"):
|
||||
self.queue_free()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue