Tutorial 18: Create a score that keeps its value between rooms Create an object called objVarPersist Add a Create event with this code: //create a global player score global.pscore = 0; Check the box Persistent Add this object to your first room. Do not add it to the second or additional rooms, as you only want to initiate the score once. It will retain its value across rooms even if you do not add it to those rooms. If you have already followed my previous tutorial on creating a score, remove the Create event from objScore. We no longer need
******************************************
The remainder of this content is restricted to site members.
It is free to join.
New users please register below.
If you are an existing user, please log in.