Saving score to global variable

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • I placed a score object on my frame and when I move to the next level I want my score to continue in the next level. I have read where it can be done saving to an ini file but I want to save it to a global variable. I created a global variable called playerscore and I want to save the score to this variable at the "End of frame". When I go under the special conditions and select Change a global value>Set it is looking for an expression and I have tried a number of things but it continues to say "Invalid expression". Can anyone tell me what expression I should be using to add the score to my playerscore variable?

  • If you are using the "Score" object, you'll need to set the global value to the corresponding Player object's score in the expression editor. Like this screenshot - note the highlighted player joystick object that tracks the score. The "Score" object itself is just a visual representation of the score at runtime, and the data cannot be retrieved from the "Score" object itself.

    Please login to see this attachment.

    Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!