Transfer variables (scores) between scenes?

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?

Cheers,
Pat

Hi @Patrick_Coleman_GO

I created a sample scene for you

I have used separate properties for storing result on every scene and one property to store total number of correct answers.

I hope that helps

1 Like

Can you show two scenes, I understand the first scene but and still conufse don what to do on the second scene.

Hi @William_O_Donnell,

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

I can’t remix the game.

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.

It should work since it worked before with other games

I have shared this space again and double-checked all settings. Please, try again

It works thank you so much :smiley:

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?

Yes, the code is still available. To remix the space, press the + icon in the CoSpace preview window.

What is the 2Answ? I am have all the questions in the same scene and I want the second scene to display the score…
How would I go about doing this?

Hi @Brayden_Taylor, try remixing the following:

Hope this helps, let me know if you have any further questions about this.

Geoff @ TechLeap