How do I randomly pick a sprite and spawn another obj?

Get help using Construct 2

Post » Fri May 23, 2014 8:56 pm

How can I randomly pick a blank sprite and spawn another object? I have 8 or so placed on the layout and I want to system to only pick one sprite location and spawn another object.

I think I first have to pick a random number and have it associated with the blank sprite 1-8, and then have that sprite spawn another object?

Thanks for the help,
John
B
19
S
4
G
2
Posts: 37
Reputation: 2,494

Post » Fri May 23, 2014 8:58 pm

The "pick random instance" event in the system object. If they are different sprites, put them all in 1 family and pick from that family.
B
10
S
3
G
3
Posts: 234
Reputation: 3,467


Return to How do I....?

Who is online

Users browsing this forum: MathNook and 44 guests