Button that can change a variable?
Hello
I'm currently doing my year 13 ICT coursework and was trying to find an easier solution for my button/ navigation system.
My product has several scenes; a home page, 4 subsection pages and a quiz page.
currently when I press a button (to go from the home to a subsection for example) it jumps to the page like needed however I need to add in transitions, I could add in new scenes that would contain the separate transition but personally I think that would take too long creating a scene for every transition needed for the product so I was wondering, is it possible to combine a variable with a button?
My idea was that on the home page there are 4 main variables, 1 for each button.
Then when a button is pressed it will continue to play the scene while changing the variable by +1 (so in this case, button A will change var A to +1 and continue to play)
Then when the transition has ended there would be some script of "if statements" saying: if variable A = 1 then continue to subsection A
also I would then need to subsection page to reset the variables back to 0, ready to use again
I hope this question make sense, if it does not please let me know
thanks
