Can't get exploded particles moving random

Get help using Construct 2

Post » Sun Feb 17, 2013 5:02 am

Looking at the attached file, in the "Event - Game" and then the "Explode asteroid section".

The idea is as follows, the asteroid is shot which then explodes into smaller sub asteroids. These sub asteroids are meant to move off in random directions but don't. Instead they move off in a straight line from left to right.

Any ideas as to what I am doing wrong?

http://www.internetlinked.com/tmp/SpaceCowBoy.capx
B
4
G
2
Posts: 42
Reputation: 811

Post » Sun Feb 17, 2013 7:53 am

Your particles are all spawning on top of each other, which means it triggers your on collision events for them. I rewrote your spawn event to this and it worked fine:

B
26
S
8
G
3
Posts: 210
Reputation: 5,973

Post » Sun Feb 17, 2013 7:56 am

Many thanks... :-) I thought it was working before I added the collisions of the particles.... just couldn't work it out :-)

Did you use some special debugging technique or did you just see it?
B
4
G
2
Posts: 42
Reputation: 811

Post » Sun Feb 17, 2013 8:22 am

I looked at the rest of your capx for anything that would alter the direction the particles were moving. When I noticed the collision/bounce event it looked like the most logical possibility.

Chalk it up to having similar things happen while developing.
B
26
S
8
G
3
Posts: 210
Reputation: 5,973


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 25 guests