Condensing workflow for instances W/ PICTURE

Get help using Construct 2

Post » Fri Jun 07, 2013 6:35 pm

http://i41.tinypic.com/23haan8.jpg



I NEED HELP PLEASE.
I have multiple instances for one object. I'd like to not have to repeat the statement that is pointed out in the picture over and over for each instance. But i need each instance separately to contribute to the money global variable. I've tried using "foreach" but it only has one instance contributing +1 to money. this is the only way ive found to have multiple instances separately contributing a +1 to money. Is there any way to condense this down to one statement.

Thank you for your help!!!

brhodes82013-06-07 18:41:42
B
4
Posts: 16
Reputation: 232

Post » Fri Jun 07, 2013 6:54 pm

You could do this:

Every 1 seconds
lot animation "pub" is playing
lot Is Visible
.. add lot.pickedCount to Money

For each should work too:

Every 1 seconds
lot animation "pub" is playing
lot Is Visible
For each lot
.. add 1 to Money
B
24
S
8
G
7
Posts: 756
Reputation: 7,242

Post » Fri Jun 07, 2013 7:55 pm

if zone is greater than 1
B
39
S
10
G
7
Posts: 514
Reputation: 9,546


Return to How do I....?

Who is online

Users browsing this forum: BloodFoxStudios, Fenix18, oosyrag, waguilar and 12 guests