Character disappears after setting position

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Sininenblue

So I have a mage that will do this if they hit a collision body below screen

func _on_Teleport_body_entered(body):
if body.has_method("_teleport"):
	body._teleport()

But for some reason when My priest falls down and gets teleported he appears for a second then immediately disappears.

func _teleport():
position = spawn

I don’t know what’s wrong and there aren’t any errors

is your priest rigid body?

supper_raptor | 2020-04-14 18:17

For helping you more, we would need some more informations.
How is the structure of the priest, does it include some sprite or anything visual.
(make a simple screenshoot)

The behavior you describe seems like the visual is in cause.
To be sure have you try to simply “brutforce” print is position:

var time = 0
func _physics_process(delta):
time += delta
prints(time,position)

Luck_437 | 2020-04-14 19:20