Creating a Login screen

I am trying to create a login screen for my game where there are 2 boxes that are used for entering a username and a password. If they are both then correct, the game will launch. But I have no idea how to do this.

The GUI component is used to create the interface. In your case, this screen is also created as the main menu, as well as the level selection.
If you are not familiar with these features, I suggest you read the documentation for this component (GUI scenes in Defold) and look at the lessons on creating games and the interface (for example, Colorslide tutorial).


Hi there, did you see this?

I’d store the expected answer strings in variables, get the input strings (see above), compare the strings and if they match, launch your game.