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,855

Post » Sat May 19, 2012 10:26 pm

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

Post » Sat May 19, 2012 10:41 pm

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


Return to How do I....?

Who is online

Users browsing this forum: Khamsou, MarkThomas, R0J0hound, Yahoo [Bot] and 21 guests