Carrying values across layouts

Get help using Construct 2

Post » Tue Jul 23, 2013 12:28 pm

Hi.

I have an energy bar issue.
I want the player to be able to collect items that add to an energy bar, but it is resetting between layouts thus:





Event sheet:


Any suggestions?
thank you

ps
(object 'Global' property is set to 'yes')
B
13
S
1
Posts: 68
Reputation: 1,198

Post » Tue Jul 23, 2013 12:35 pm

Instead of using a local variable on the sprite, you could just use a global variable and problem solved..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Jul 23, 2013 12:37 pm

Sorry! Sorry...

Global variables. Wasn't thinking.
sorry.

Thank you Little Stain!
B
13
S
1
Posts: 68
Reputation: 1,198


Return to How do I....?

Who is online

Users browsing this forum: dokthor, maldrok, zenox98 and 13 guests