Organisational Help (new to Godot and getting confused :-) )

Hi all,
I’m hoping that I can explain this clearly and succinctly - but apologies if I ramble.

I’m new to Godot, and have been through a few tutorials, but find I learn a lot better if I dive in and try and create something - but I’m getting confused, which is causing me some stress so hope you can help.

I’m trying to replicate / re-code a quiz program I wrote in a version of FlashScript (remember that) many years ago. That was timeline based, and far from the best code in the world - but it worked. I am happy to do the same with Godot, just to get something working and then refactor from there.

The quiz has 7 rounds, each on different subjects, and information is often presented differently. However, there are a few rounds that share the same components: i.e.
Picture slider - for every question a picture slides up from the bottom of the screen
Question Display - Displays the current question, and any multiple choice options if required.

As a test - to see if I can get this to work, I’ve built one round, which has both of the above. I initially coded each as a separate scene, but then had issues connecting signals back to the main scene from the picture Scene, so I then I coded them as just separate nodes (is this almost the same thing?) and that worked.

My question is should these be seperate scenes so that I can then reference them instead of re-creating them each time. The issue being I need to load different pictures and questions for the separate rounds.

Or, should I just treat each round as a separate scene, which will have some code repetition, and then use a main scene to instantiate, or load, the correct scene required?
I will be using an autoload for the questions and possibly sound effects but I’ve just got myself confused and going around in circles with regards to the main program etc. so just need a gentle shove in the right direction :slight_smile:

Hope that this makes sense, my wife says I don’t very often lol and thanks in advance for any help / advice - even if it’s give up and don’t turn Godot on again! lol :slight_smile:

I would have a slide scene, with a moving picture and text. And a main scene to start animations and cycle through the rounds.

Most scenes you should make a script on the root node that controls the scene and provides an api. That way, after you instance a slide scene, you can interact with the root of the scene easily.

1 Like

@pennyloafers - many thanks for the reply.

Having a senior, blonde, moment :-). - Can you explain what you mean by each scene should “provide an api”

Sorry, if I’m missing something obvious here :slight_smile:

I will point to some good beginner documentation provided by Godot. There is lots of good information on that site.

Basically a scene whenever you add nodes to the scene window and save it as a *.tscn file. This is where you want to encapsulate your node concepts as scenes. That can later be imported into other scenes.

1 Like

The official demos helped me to understand Godot better.

This demo shows how to use autoloads to change between scenes.

@pennyloafers and @alex2782
Thank you so much for the links - my head was not in the right place yesterday and so looking around was just sending me in circles. However, those links were perfect and have helped immensely going forward - thank you so much for your help.

Hate to say, that I’ll probably be back with other questions though, but I’m getting there :slight_smile:

1 Like