Fixed player spawning blood effect parented to himself.

godot4-port
Tobiasz Karoń 2020-09-19 13:23:33 +02:00
parent e9424e2160
commit 1456dacc30
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ master func on_hit(damage, location):
remote func blood_splatter(location):
var effect = bodyHitEffect.instance()
add_child(effect)
get_tree().root.add_child(effect)
effect.global_transform.origin = location
master func kill():