Pick a number of random instance

Get help using Construct 2

Post » Sun Feb 15, 2015 5:07 pm

Hi

With this I random pick an instance for 20

BUT who can I set how many to be spawned

C2_pick-number-of-random.jpg


I may only want 2 spawned
You do not have the required permissions to view the files attached to this post.
B
24
S
14
G
10
Posts: 328
Reputation: 7,617

Post » Sun Feb 15, 2015 5:12 pm

you can use a FOR loop.. (FOR 1 TO 2) pick random instance and spawn... the problem is that the Is On Screen will trigger it again (I don't know what is above that event)
Image
B
46
S
12
G
6
Posts: 270
Reputation: 11,616

Post » Mon Feb 16, 2015 10:36 am

I see... its triggered all by the On Screen

Ive come up with this instead

But when want to destroy it - it goes for all
What am I missing :-) cheers

C2_pick-instance.jpg
You do not have the required permissions to view the files attached to this post.
B
24
S
14
G
10
Posts: 328
Reputation: 7,617

Post » Mon Feb 16, 2015 10:38 pm

[quote="flemmig"]I see... its triggered all by the On Screen

Ive come up with this instead

But when want to destroy it - it goes for all
What am I missing :-) cheers

Don't understand what you're trying to do
Image
B
46
S
12
G
6
Posts: 270
Reputation: 11,616


Return to How do I....?

Who is online

Users browsing this forum: Bilderberg CEO, patmaru, Ratmaster, Yahoo [Bot] and 3 guests