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
6
G
3
Posts: 194
Reputation: 5,950

Post » Sat May 19, 2012 10:26 pm

Use system: compare values. If blueblock.count is less than 5, spawn blueblock.
Moderator
B
95
S
34
G
33
Posts: 3,006
Reputation: 27,874

Post » Sat May 19, 2012 10:41 pm

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


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, JackTYGA, MeteoorSC, worm1 and 24 guests