How do I acess the combined variables for sprites

Get help using Construct 2

Post » Sat Nov 14, 2015 11:27 pm

So if I have 10 lakes and each lake has a variable water how could I see the combined amount of how much water each lake has?
B
22
S
8
Posts: 203
Reputation: 2,059

Post » Sat Nov 14, 2015 11:34 pm

one way would be having a global variable TotalWater

trigger once (or another triggered event)
> System set TotalWater = 0
-- for each lake
> System TotalWater add lake.water
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 » Sat Nov 14, 2015 11:49 pm

Hmm ok I'll try that thank you
B
22
S
8
Posts: 203
Reputation: 2,059


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot], ivanski1983 and 13 guests

cron