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
34
S
18
G
11
Posts: 353
Reputation: 8,803

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
58
S
13
G
6
Posts: 271
Reputation: 12,128

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
34
S
18
G
11
Posts: 353
Reputation: 8,803

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
58
S
13
G
6
Posts: 271
Reputation: 12,128


Return to How do I....?

Who is online

Users browsing this forum: John Cutter, matriax and 9 guests