How many on screen?

Get help using Construct 2

Post » Sat May 19, 2012 10:01 pm

Is there a way for the engine to know how many object(s) are on screen at any given time?

I'm trying to do something like


(If 5 blue blocks are on screen)
{
     don't spawn any more blue blocks

     (else)
{
     keep spawning blue blocks
}

}


How could i fake this?

B
22
S
5
G
3
Posts: 194
Reputation: 5,885

Post » Sat May 19, 2012 10:26 pm

Use system: compare values. If blueblock.count is less than 5, spawn blueblock.
Moderator
B
91
S
32
G
33
Posts: 3,005
Reputation: 27,542

Post » Sat May 19, 2012 10:41 pm

thank you
B
22
S
5
G
3
Posts: 194
Reputation: 5,885


Return to How do I....?

Who is online

Users browsing this forum: Draconiz717, Google [Bot], Kenthria and 7 guests