Quiz time
- Control nodes are used to create UIs such as menus. For each of the following scenarios, give a Control node that could do the job:
- Showing a long piece of text
- Grouping other Control nodes to the center of the screen
- Showing a button to start the game
- Which node did we add to the
Enemy
scene to make it find a path to the player? - Let’s say that we have this piece of code where we define a signal called
shot
to indicate that we shot a projectile:signal shot
Write the line of code that is needed to emit this signal.
- How do you load a scene from within the code into a variable?
- How can we make a script globally accessible?