0 votes

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

asked Apr 14 in Engine by Sininenblue (26 points)

is your priest rigid body?

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)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.