local variable problems

Get help using Construct 2

Post » Wed Jan 09, 2013 10:49 am

i was using local variables because my games has 2 levels normal and hard and for some reason one blocks the other out so the text boxes just come up saying text instead of showing you your health score and time, i find construct rather confusing so if i come back saying i don't have a clue what you said then don't be offended :)
B
4
Posts: 19
Reputation: 463

Post » Wed Jan 09, 2013 10:52 am

i know the file is to big so if you don't want to destroy your broadband just ask for a screenshot of what ever you need :)
B
4
Posts: 19
Reputation: 463

Post » Wed Jan 09, 2013 12:08 pm

Your "ScoreHard" is a local variable to the group "Hard".
It means that because of the scope ("range") of local variable it can only be accessed from and only from within this group (to be displayed/modified).


This code should work.
I haven't tested it, your coding is far too much spread imo, you're using too much useless groups and too many event sheets (C2 isn't C++, try to keep your code organized in another way).

Consult this manual entry as well as this and that thread (listed in the How do I FAQ).
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 » Wed Jan 09, 2013 12:15 pm

I will give that a shot if what i'm doing does not work thanks for the help guys! :)
B
4
Posts: 19
Reputation: 463

Previous

Return to How do I....?

Who is online

Users browsing this forum: christina, Google [Bot], Yahoo [Bot] and 22 guests