Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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.
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
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 =)
Develop games in your browser. Powerful, performant & highly capable.
Absolutely fantastic - Thanks so much for the effort you put in on this Sargas - It is very much appreciated.
Sargas yep pretty cool I like it thanks