same as below
This commit is contained in:
parent
2164eade29
commit
cb0ffac056
1674 changed files with 29651 additions and 93 deletions
|
@ -13,6 +13,9 @@ func hit(body):
|
|||
if body.has_method("destroy"):
|
||||
body.destroy()
|
||||
else:
|
||||
var explosion = load("res://explosion.tscn").instantiate()
|
||||
$"/root/Node2D".add_child(explosion)
|
||||
explosion.global_position = global_position
|
||||
body.queue_free()
|
||||
|
||||
queue_free()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue