0 votes

Can someone explain to me how to create a gamemode with playes-choosen variables?
The idea is this: when lives reach 0 because you touch obstacles you go back to the main menu.

Godot version 3.2.3
in Engine by (25 points)

1 Answer

+1 vote
Best answer

You can have your player enter a number inside a LineEdit, or use a few 1-2-3 buttons.

To change the main scene, you would generally use :
get_tree().change_scene("scene path")
But handling the transition in a custom way is certainly possible.

When using change_scene, you pass variables over inside autoloads.

A life counter that sends you back to the main menu seems a bit frustrating, maybe a checkpoint system would be better?

by (2,568 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 Frequently asked questions and 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 [email protected] with your username.