How do I create a particle effect in the opposite direction?

Get help using Construct 2

Post » Mon Oct 13, 2014 12:44 pm

Hi,

I've created a particle effect to show a thrust motion of a flying saucer on drag and drop. However, I'm unsure how I make the particle cone match the opposite direction in which I'm dragging, thus showing the thrust pushing the saucer along.

Any ideas please ?

Many thanks for any help you can offer me.
B
8
S
3
Posts: 12
Reputation: 626

Post » Mon Oct 13, 2014 9:36 pm

This might not be the best way to do this, but out of my head, i would make this:

every 0.1 sec while dragging: store the X and Y of the sources in instance variables.
and set the particle effect angle to the angle between the stored coordinates and the current coordinates.
B
43
S
12
G
6
Posts: 446
Reputation: 6,802

Post » Tue Oct 14, 2014 12:54 pm

Thanks for your help Sargas, but I managed to find the solution on the forums - Sorry, for some reason I couldn't see it yesterday.

The answer is here : solved-opposite-angle-in-degrees_t63118

In essence : (180+saucer.Angle)%360

Cheers all.
B
8
S
3
Posts: 12
Reputation: 626

Post » Tue Oct 14, 2014 1:04 pm

Doh ! No it isn't, as the angle never changes on drag. Back to square one, but I'll try Sargas' approach now.....
B
8
S
3
Posts: 12
Reputation: 626

Post » Tue Oct 14, 2014 4:42 pm

huehue, yeah, i knew the angle of the object wouldn't change, that's why I though of my system ^^

here, i had some time in my hand and made it for you =)
I made a little different than I initially though, this works better =)
You do not have the required permissions to view the files attached to this post.
B
43
S
12
G
6
Posts: 446
Reputation: 6,802

Post » Sun Oct 19, 2014 1:48 pm

Absolutely fantastic - Thanks so much for the effort you put in on this Sargas - It is very much appreciated.

Cheers
B
8
S
3
Posts: 12
Reputation: 626

Post » Sun Oct 19, 2014 2:19 pm

Sargas yep pretty cool I like it thanks
B
245
S
37
G
15
Posts: 1,941
Reputation: 40,096


Return to How do I....?

Who is online

Users browsing this forum: ksiads, R0J0hound and 8 guests