made launch rigid more generic

This commit is contained in:
pennyrigate 2023-02-21 15:56:47 -05:00
parent 65a4fd8742
commit 40e10663d6
7 changed files with 158 additions and 19 deletions

View file

@ -27,3 +27,7 @@ func _physics_process(delta):
direction *= -1
if position.y <= startpos.y - (up_boundary):
direction *= -1
func die():
.die()
Game.instance_node(load("res://objects/enemy/tin_die.tscn"),position.x,position.y,get_parent())