+1 vote

A noob here

I am currently making a 3D game and I need a playmenu which I have created. In the playmenu, i added a "play" button. The problem is, I don't know how to make the play button work, meaning when I click it, it will take me to another scene. Any help would help, thanks.

Godot version 3.2
in Engine by (27 points)

3 Answers

+1 vote

You want to connect the button's "pressed" signal to a function that will change the scene. The docs have some nifty guides for that.

by (8,546 points)
0 votes

Hello,

A simple way, but not the best solution :

Change scene
As exuin said it's better to read the guides to found a better solution for memory, speed, data access, depending of your situation.

Have a nice day.

by (211 points)
0 votes

Hi,

if your scenes are getting big, or you want a progress bar as you load, you may want to consider using the ResourceLoader.

I used it because I load scenes mid level and I was seeing the game "jerk" as it loaded. This stopped that for me.

Background loading

by (2,063 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 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.