I’m trying to make something like a visual novel game but without choices (but there will be other interactive stuff of course). I decided to use booleans for scenes like this:
Hi @qewer3322, the reason why you pass from the s1 to the s4 is because you are following the cicle of ifs; s1 == true, then S2 = true and go for the next if with s2 = true, then s3 goes to true, and you go to the last if with the s3 = true.
And you can do in many ways, yes, you can use arrays, probably will be better in order to have less variables and better organization.
I tried something similar time ago, and I prefer to use an int, and a switch statement, and just change my int variable to select the phase I want to go.
So, in general, in addition to switching between code rules for each scene, you can also create the common elements of your scenes as data, rather than rules, have the simple rules be “show whatever is in this scene”.