Random spawn

Get help using Construct 2

Post » Sat Aug 31, 2013 4:54 pm

Is it possible to create object"Y" in object"X"'s location when object"X" is destroyed? I only want object"Y" to spawn sometimes. Like a 25% chance to spawn object"Y" every time object"X" is destroyed.
B
5
S
1
G
1
Posts: 2
Reputation: 330

Post » Sat Aug 31, 2013 5:28 pm

Just add an On destroyed, pick a random number between 0&3, and spawn on one fixed value.
Spawn25.capx
ImageImageImage
B
71
S
21
G
229
Posts: 3,686
Reputation: 128,336

Post » Sat Aug 31, 2013 6:10 pm

Awesome
Thank you so much
B
5
S
1
G
1
Posts: 2
Reputation: 330


Return to How do I....?

Who is online

Users browsing this forum: blue visionary and 24 guests