Spawn random object from object

Get help using Construct 2

Post » Tue Jun 18, 2013 8:52 pm

Hi everyone i've being looking in the forum for a way to do this and couldn't find it.

What i want to do is to spawn a random enemy when i click on an object.

Sounds simple but i can't do it! haha.. can anyone help me?

THANKS!
B
7
S
2
Posts: 14
Reputation: 903

Post » Tue Jun 18, 2013 9:30 pm

Come on, I can't believe you've actually looked. The search "spawn random" comes up with dozens of threads - many of them solved - on the matter, with multiple approaches.

In general, with the free version of C2, the approach is: generate a random variable (rounded to nearest whole number) within your desired range; then create a bunch of events to spawn objects, each triggered by a different value of that variable.

With the paid version, you get access to families, which can do this all for you in a single event.
B
57
S
15
G
11
Posts: 912
Reputation: 12,606

Post » Sun Jun 23, 2013 3:00 pm

Yes, my bad! thanks anyways.. Topic can be closed, sory
B
7
S
2
Posts: 14
Reputation: 903


Return to How do I....?

Who is online

Users browsing this forum: plinkie and 16 guests