Is there a way to transfer variables between scenes?
I’m wanting to create a quiz with a different scene containing unique question.
I found the get/set space property example which shows me how to add the score through variables but i want to be able to transfer a players score from scene to scene.
Is this possible?
Could you somehow have a final scene which contained all the correct and incorrect answers?
the code above is the code from the second scene. On this example variable allAnsw is used as a global property variable and stores the number of correct answers. You can read this value using CoBlock “CoSpace property” or set it using “set CoSpace property”
you can remix the space and see how this is done in this example
You, probably, have basic account and cannot remix spaces.
If it is not, then please send a screenshot of the project page and the device you are using.
Hello. I’d love to take a look at the code for this as well, as I’m stuck on the same issue - I can’t appear to remix it, even with a Premium account. Is this code still available to see/remix?
I still don’t understand how to restart the game and go back to the first scene it contains variety coding can you tell me how to code Transfer variables (scores) between scenes
Use cospaces proprety (behind normal vars when the advanced coblocks are on) that don’t change between scenes (you can use them everywhere in the project).