How do I calculate the cubic distance?

Get help using Construct 2

Post » Fri Oct 20, 2017 12:48 am

Nice! Wonder if those can be combined into a smooth line with alpha clamping...

Edit: never mind, just need to stretch a rectangle between each one. Too much playing with metaballs for me ><
Last edited by oosyrag on Fri Oct 20, 2017 7:20 am, edited 1 time in total.
Mistakes were made.
B
56
S
28
G
115
Posts: 1,710
Reputation: 65,143

Post » Fri Oct 20, 2017 1:38 am

last.X+ cos(angle(object.x,object.y,last.x,last.y)*offset
last.Y+ sos(angle(object.x,object.y,last.x,last.y)*offset

Pick closest even.
Image ImageImage
B
173
S
50
G
194
Posts: 8,561
Reputation: 121,358

Post » Fri Oct 20, 2017 12:40 pm

Updated the project a little bit, and removed all the junk, and added a blur effect on the trail. Pretty lightweight nice looking trails and streaks following your object. The regular particle emitter can't place the streaks at an even distance so had to make my own :)

Here's a link to the c3p file.
https://www.dropbox.com/s/ks7cnrv5thu58kf/streakstest2.c3p?dl=0

And Here's a Demo
http://tunepunk.com/share/streaks/

EDIT: I was aiming to use a more accurate way by using the actual distance travelled using R0j0's math, but that was too complex calculations for me, and I couldn't get an even flow of spawns. So... This will do fine.
Follow my progress on Twitter
or in this thread Archer Devlog
B
44
S
20
G
19
Posts: 1,091
Reputation: 14,376

Previous

Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider], Nexis717 and 20 guests