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.
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.
Develop games in your browser. Powerful, performant & highly capable.
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 :
In essence : (180+saucer.Angle)%360
Cheers all.
Doh ! No it isn't, as the angle never changes on drag. Back to square one, but I'll try Sargas' approach now.....
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 =)
Absolutely fantastic - Thanks so much for the effort you put in on this Sargas - It is very much appreciated.
Cheers
Sargas yep pretty cool I like it thanks