Do Global Variables Exist-Where Do I Declare Them?

Get help using Construct 2

Post » Fri Feb 15, 2013 9:36 pm

Do Global Variables Exist-Where Do I Declare Them?

Hi,

I'm finishing up my 1st "Construct 2" video game now.
Starting to thing about a high score table for the game.
I need global variables for the table but don't know where to declare them?

Thanks!

JeZ+Lee
B
11
S
3
G
4
Posts: 105
Reputation: 2,950

Post » Fri Feb 15, 2013 9:48 pm

Manual entry about global and local variables.

You define global variables in event sheets and those are global to the whole project/all the event sheets (even a not-executed event sheet).
The position of global variables in the event sheet doesn't really matters.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Fri Feb 15, 2013 9:53 pm

[QUOTE=Kyatric] Manual entry about global and local variables.

You define global variables in event sheets and those are global to the whole project/all the event sheets (even a not-executed event sheet).
The position of global variables in the event sheet doesn't really matters.[/QUOTE]Hi,

Well, ok, thanks!

JeZ+Lee
B
11
S
3
G
4
Posts: 105
Reputation: 2,950


Return to How do I....?

Who is online

Users browsing this forum: Colorfish, MarkThomas and 30 guests