For number 1, you need to define the variables outside of the function so they are class variables (variables you can access from outside the node) instead of function variables (variables only available in that single function).
Using the code posted above, you can still have a score_init function with class variables, you just need to make the variables you want class variables, and then in the score_init function remove var so from the beginning of each assignment so you are setting the class variable, not making a new function variable.
Something like this (untested):
var set_count;
var first_score;
var second_score;
var third_score;
var fourth_score;
var fifth_score;
var sixth_score;
var seventh_score;
func score_init():
set_count = 0;
first_score = “—“;
second_score = “—“;
third_score = “—“;
fourth_score = “—“;
fifth_score = “—“;
sixth_score = “—“;
seventh_score = “—“;
For the second question, I have no idea. I have not seen the tutorial and unfortunately right now do not have the time to see it. If what I wrote below does not work, let me know and I’ll see if I can make some time to check out the video.
Looking at the GIF, I would guess that the UI layer is above the node(s) that cause the transition in the scene. You can check this by adding a ColorRect node as a child of the transition node(s) and move the ColorRect underneath the UI.
If the UI draws on top of the ColorRect, then most likely the issue is the node order in the scene. If that is the case, then all you should need to do is move the transition nodes lower or higher (I cannot remember which right off) in the scene tree until the transition draws over the UI.
For the third question, honestly I do not know. What does the error message say? If the node is Node2D based, then position should be defined and usable in a tween.
You are right that Control based nodes (like RichTextLabel) do not have a position property. Instead you will need to use the rect_global_position and rect_position properties if you want to change its position.
Hopefully this helps :smile: