fix most of the script errors and warnings, fixed a couple tiny bugs in the process :)
This commit is contained in:
parent
9435089f21
commit
72733db609
23 changed files with 55 additions and 63 deletions
|
@ -43,7 +43,7 @@ func die():
|
|||
bone.global_position = global_position
|
||||
bone.linear_velocity = Vector2(bones_speed * rand_range(0.5, 1.5), 0.0).rotated(rand_range(-PI, 0.0))
|
||||
bone.angular_velocity = rand_range(-PI*2.0, PI*2.0)
|
||||
var timer = get_tree().create_timer(3.0 + rand_range(0.0, 1.0), false)
|
||||
timer.connect("timeout", bone, "queue_free")
|
||||
var bone_timer = get_tree().create_timer(3.0 + rand_range(0.0, 1.0), false)
|
||||
bone_timer.connect("timeout", bone, "queue_free")
|
||||
get_parent().call_deferred("add_child", bone)
|
||||
.die() # call rest of enemy.gd die() funciton
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue