0 votes

So, I am new to game development. tbh I'm new to GDScript. So I am making this platformer where there will be a lava pit under the floating grounds and if the player falls in the lava the player will die. But I can't figure out how to kill the player if the lava is touched and how to make the player respawn at the starting point of the game after they die.

Godot version 3.3.2
in Engine by (25 points)

1 Answer

0 votes
Best answer

That's quite an open ended question.
If it's an node object, you can free it and it will vanish. You can then create a new node object.
Or you can move it off screen, have it die, move it back.....

Maybe watch a platformer tutorial ?

by (1,865 points)
selected by
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.