Particles

Get help using Construct 2

Post » Wed Dec 12, 2012 8:39 pm

I have been trying hard to do this but it will not let me.

I want the particles come off my mouse when I move cursor.
I want to particles move to a different direction when I move the cursor around for a cool effect.

Any ideas?
B
2
Posts: 1
Reputation: 402

Post » Tue Aug 08, 2017 6:13 pm

Me too...
Check out my latest game RAPID-TAPIT. Get your Fingercise on with this one. A steady Tap is all you need to score points. Lift a finger and see what you can do...

Image

ALLMarkMade Designs
B
32
S
15
G
3
Posts: 356
Reputation: 5,269

Post » Wed Aug 09, 2017 12:29 am

You have to create your own particle engine, which is really easy...

Make a sprite object that has the particle look that you want... you can even animate it, or make different frames with different particles if you want to randomise the effect.

You can also add a behaviour to the particle sprites you made, like bullet or physics, etc... then make them fall with gravity or even float into the air

Once you have this, just make some events like:

every tick
-- create particle.sprite at mouse.x mouse.y
-- set particle.bullet.behaviour.direction to random(360)
-- set particle.bullet.behaviour.angle to random(360)
-- set particle.bullet.behaviour.speed to random(20,100)
-- set particle.animation.frame to choose(1,2,3)

or something like that^

This would make random looking particles (if you had different animation frames made with different artwork), all facing a random angle, and flying to a random direction at a random speed.

You can of course make the speed and direction the way you like it to be instead :)

~Sol
This would make
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
83
S
34
G
40
Posts: 3,032
Reputation: 30,474


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 59 guests