How do I stop bubbles wan global = 0

Get help using Construct 2

Post » Fri Jun 17, 2016 2:57 pm

hi i make bubbles touch game
i create every 1 second create bubble different names
i add text global function if
white bubble is equal to 0 how i stop creating white bubbles
plz help
B
11
S
5
G
1
Posts: 55
Reputation: 1,505

Post » Fri Jun 17, 2016 3:03 pm

@gumshoe2029 @PixelPower
B
11
S
5
G
1
Posts: 55
Reputation: 1,505

Post » Fri Jun 17, 2016 3:45 pm

@Lalitinnovations

Please do not bump your own thread after barely 5 minutes. It is acceptable to bump a thread after 24 hours if no answer has been forthcoming.

Please be aware that those who generally offer help come from many varying timezones.

Please be patient.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
137
S
31
G
87
Posts: 5,554
Reputation: 60,452

Post » Fri Jun 17, 2016 4:22 pm

@Lalitinnovations

where you create white bubbles, add a System Event "compare two values" saying:

(first value) WhiteBubble.Count (comparison) > Greater Than (second value) 0

Then the following code where you have create object WhiteBubble will only execute if there are still other instances of WhiteBubble.
B
99
S
35
G
20
Posts: 438
Reputation: 17,910

Post » Fri Jun 17, 2016 5:24 pm

You can use a static variable like "makeBubbles=1"
then change that variable to "makeBubbles=0" when you want it to stop.
Then for your Create White Bubble action, you can use a Compare Variable to 1.
Like:
Image
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857

Post » Sat Jun 18, 2016 2:13 am

OK that good I have try
B
11
S
5
G
1
Posts: 55
Reputation: 1,505

Post » Sat Jun 18, 2016 11:04 am

Sorry I haven't been online for a couple of days. If your still having trouble let me know and I will make a quick demo capx for you.
Check out my awesome Android Game releases https://play.google.com/store/apps/deve ... ames&hl=en
B
38
S
18
G
24
Posts: 682
Reputation: 16,635


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 10 guests