Fixed player spawning blood effect parented to himself.

This commit is contained in:
Tobiasz Karoń 2020-09-19 13:23:33 +02:00
parent e9424e2160
commit 1456dacc30

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():