Particle spray direction

Get help using Construct 2

Post » Thu Feb 07, 2013 2:56 am

I'm quite new here and have been messing with the particles, but I can't seem to change the direction they spray. I have the angle set at 270 which would suggest that should spray up and it does if I make it visible when running the layout but when I spawn the particles from another object (destruction of another sprite) it has the default angle of 0. Is there a way to set it when it spawns or prior to spawning? Am I just missing something obvious?

Thanks in advance!
B
6
S
1
Posts: 11
Reputation: 1,072

Post » Thu Feb 07, 2013 4:40 am

After spawning the particle, you can use Set Angle on it to get the angle you want.
You can even set an angle relative to the object spawning it by setting the angle to something like;

Object.Angle+95

Object being the name of the object you want to align it to, and +95 would off set the particle's angle by 95 degrees.
B
6
S
1
Posts: 67
Reputation: 986

Post » Fri Feb 08, 2013 12:36 am

Ah, that was it. I just added a particles-SetAngle action right under the spawn-particles action. Obvious now that I see it. :) Thanks!
B
6
S
1
Posts: 11
Reputation: 1,072


Return to How do I....?

Who is online

Users browsing this forum: BinaryPanda, luckyrawatlucky, mindragon73, Rezzon71 and 25 guests