0 votes

I want to preload the players scene in the players script to respawn the player but it says that it can't preload the scene

enter image description here

enter image description here

enter image description here

in Engine by (42 points)

have you double checked the path is correct?

yes, i dragged it in. it told me, that it is already preloaded what it indeed is, but i want to instance it after it got destroyed with the queue_free command/function to "Respawn" The player scene

if Player is name of a class then the variable should be called something else to avoid confision? _player or something. May not apply in this case.

1 Answer

–1 vote


var respawnplayer = get_node(".")

by (73 points)
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.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.