0 votes

Hey there. So im doing a simple platform game as a School Project. I never programmed an game and now im here to ask if someone know how i can put a Question in the game.

I imagined like you walk and do the game. like an simple platform game and on the way to the finish line every time you need to answer a question to go forward.

Thanks for the help and have fun programming

in Engine by (12 points)

1 Answer

0 votes

I think you would use Area2D nodes to set the locations where the questions will be asked, when the player enters it, the signal "body_entered" is emitted. Then you would have a Panel node for each question (invisible by default) that you set visible. The question is a Label, child of the panel, and the answers are buttons.

Does it help ?

by (283 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.