Spawn Particles at random angle?

Get help using Construct 2

Post » Wed Dec 31, 2014 3:08 pm

Hi there,

I was doing some forum searching and saw some conversation about this, but I want to be clear. I'm not so much talking about random rotation as in animated, but simply being able to spawn particles themselves at any random position 1-360.

Is this possible somehow? I can imagine how having rotating sprites all actually turning as they go up to be cpu intensive, but it seems like simply positioning the sprite at the moment of creation to be random would not be a problem and it would make a huge difference in terms of particle quality.. a smoke effect with a single sprite each appearing at the same angle is noticeable.

Thanks,
Caleb
B
56
S
9
G
1
Posts: 938
Reputation: 6,458

Post » Thu Jan 01, 2015 4:40 pm

Your best bet is probably to just make a sprite with a bullet behaviour and then spawn a bunch of them using the Repeat system action and adding random(360) and something like random(200,300) to speed (obviously changing the values according to your needs. It'll work about the same as a particle system, but with more control.
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Post » Sun Jan 04, 2015 7:26 pm

@somebody hmm interesting suggestion. thanks! :) Silly that this is what it would take to get this effect though, but good way of thinking outside the box
B
56
S
9
G
1
Posts: 938
Reputation: 6,458

Post » Sun Jan 04, 2015 7:46 pm

The built-in particle system is quite limited - with sprites you can do all sorts of interesting things, such as scale them, rotate them, etc. This lets you make more realistic effects, such as billowing smoke, etc.

I wish the built-in system was better, this has been brought up a couple of times, but I guess the thought is the same - "if you want better stuff just make it yourself" - as far as I know performance isn't really better or worse so might as well.
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646


Return to How do I....?

Who is online

Users browsing this forum: sublimate and 1 guest