how can i access global variable 'score'?

For questions about using Classic.

Post » Sun May 06, 2012 8:53 am

hi,
i have created a small game which is present in the tutorial. but i want to access the score of this game so that i can keep a record of it.

But i am not able to find any varibale which is keeping the tab on player score .

can anyone help me with it plz
B
3
Posts: 1
Reputation: 277

Post » Sun May 06, 2012 8:56 am

If the variable is not visible to you while you've added it, then it may be out of scope; it may actually be a local variable. Create it outside the scope, at start of event sheet is best for global variables.

Just guessing.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Mon May 07, 2012 12:37 am

[QUOTE=Mipey] If the variable is not visible to you while you've added it, then it may be out of scope; it may actually be a local variable. Create it outside the scope, at start of event sheet is best for global variables.

Just guessing.[/QUOTE]

I didn't think Construct Classic had local variables

@crow, you can try global('score') to pull it's value in an expression field, and look in the System object for conditions and actions related to global variables.Jayjay2012-05-07 00:38:11
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 8 guests