How do I set particle spray direction

Get help using Construct 2

Post » Fri Feb 19, 2016 11:24 pm

I have a function called enemy hit, which triggers when a bullet collides with an enemy. I'm trying to set the angle of particles to spray from the opposite side of the bullet hitting. How would I go about that? Thanks
B
6
Posts: 30
Reputation: 310

Post » Fri Feb 19, 2016 11:46 pm

B
84
S
22
G
15
Posts: 1,039
Reputation: 15,249

Post » Fri Feb 19, 2016 11:46 pm

On Bullet Hit
Create particle at Bullet.X, Bullet.Y
Set Particle angle to Bullet.Angle
Move Forward Particle Offset Amount.
Destroy Bullet

Might have to play with a little trig math to get a really accurate offset amount, but you might not need that.
Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458

Post » Fri Feb 19, 2016 11:48 pm

Nice, that works perfectly. Thanks oosyrag!
B
6
Posts: 30
Reputation: 310


Return to How do I....?

Who is online

Users browsing this forum: Unconnected and 23 guests