Asteroid Question

Get help using Construct 2

Post » Sun Mar 11, 2012 7:49 pm

I am currently working on a game that has asteroids spawning randomly. The only problem is when i destroy 1 they all get destroyed.

I probably have to make an instance somehow but i don't know how to do it per say.

Any help would be extremely valuable.
B
22
S
5
G
3
Posts: 194
Reputation: 5,855

Post » Sun Mar 11, 2012 7:59 pm

Pick nth, random(roid.count)
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Sun Mar 11, 2012 8:26 pm

Thanks

I have it set up to where if my player gets hit by the asteroid the asteroid is destroyed and the player takes damage. The funny thing is all of the asteroids aren't destroyed.

But when i shoot the asteroid and destroy it it destroys all of them. I don't know exactly where to put the pick nth condition.
B
22
S
5
G
3
Posts: 194
Reputation: 5,855

Post » Sun Mar 11, 2012 11:07 pm

Oh, that should be just like when the player hits. Bullet on collision, etc.
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Mon Mar 12, 2012 8:31 am

coolbeans
B
22
S
5
G
3
Posts: 194
Reputation: 5,855

Post » Mon Mar 12, 2012 8:52 am

nice.......
B
2
Posts: 8
Reputation: 266


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, jul and 20 guests