When I create my scenes, I have this in mind: One chapter will have several scenes (4 to 5 maybe) and the whole game will span maybe 3 to 6 chapters or so.
So there are some variables, let’s say var1 in scene c1-1 that I would like to persist until scene c1-5 because of plot reasons, but that’s all. The variable would not be used anywhere else after that. However, since the temp variable does not allow it to be carried over to other scenes, the only way left - at least that’s what it appears to be in the wiki - is to declare it a global variable.
My question is, is there a way to carry over variables to other scenes? Or should I just lump them together as 1 scene, at the risk of increasing load time/lag/crashes?
If you’re going to use it through a good chunk of the game, I’d suggest just creating it as a global variable.
That said, I’ve got a few global variables called rollover1, rollover2, etc. that I use when I want a *temp in one scene to be remembered in the next. If I need it in 3 or 4 scenes, though, I’d make it global. Otherwise I’d just be multiplying "rollover"s at the cost of clarity.