How to add an question to 2d platform game

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Ricardo

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

:bust_in_silhouette: Reply From: Joel_127

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 ?