[behavior] rex_spline

Post your work in progress addons and get feedback

Post » Fri Sep 16, 2016 7:49 pm

Mirlas wrote:Hello, I read the documentation but can not find the way to find out what is the point that is currently walking.

Something like a variable named
CurrentPoint
This would return the point number that is currently walking.


https://www.dropbox.com/s/j18yvj7wkgvde ... .capx?dl=0
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Fri Sep 16, 2016 8:01 pm

99Instances2Go wrote:
Mirlas wrote:Hello, I read the documentation but can not find the way to find out what is the point that is currently walking.

Something like a variable named
CurrentPoint
This would return the point number that is currently walking.


https://www.dropbox.com/s/j18yvj7wkgvde ... .capx?dl=0


These are the coordinates of the future point, not the actual point number !.
B
31
S
13
G
21
Posts: 844
Reputation: 14,693

Post » Fri Sep 16, 2016 8:14 pm

Dude, actual = Sprite.X and Sprite.Y

(and there is no index on the spline)
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Sun Sep 25, 2016 7:10 pm

Firstly, thank you for your C2 plugins Rex, your work is outstanding.

Quick question:

What would be the best way to move an object to the last point of a spline path within a specific time?
(Ie. Tween position along a curved spline path.)

I'm sure I'm missing something basic.
B
4
Posts: 12
Reputation: 224

Post » Mon Sep 26, 2016 2:00 am

@LoremDimSum

Since I did not implement function to get total length of whole path, it is impossible to have a tween behavior from start to end.
B
110
S
28
G
280
Posts: 4,488
Reputation: 156,568

Post » Mon Sep 26, 2016 8:02 am

Ah, that's a shame. Thanks for your response.

Is there any chance at all you might implement this?
Would be incredibly useful.
B
4
Posts: 12
Reputation: 224

Post » Mon Sep 26, 2016 8:33 am

@LoremDimSum

Not in my TODO list, sorry. It is full in current 3 or 4 months.
B
110
S
28
G
280
Posts: 4,488
Reputation: 156,568

Post » Mon Sep 26, 2016 9:47 am

Ok, cheers. No problem!

Would you perhaps have any other suggestions as to the best alternative way to achieve this in C2?
(Tweening position along a custom curved path)


No worries if you're busy.
B
4
Posts: 12
Reputation: 224

Post » Mon Sep 26, 2016 2:07 pm

@LoremDimSum

I have no idea, sorry.
B
110
S
28
G
280
Posts: 4,488
Reputation: 156,568

Post » Mon Sep 26, 2016 6:16 pm

@LoremDimSum

You can do a pretty good estimate by make the sum of the distances by each segment. Find out the average you have to add for corners.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

PreviousNext

Return to Work in Progress Addons

Who is online

Users browsing this forum: No registered users and 0 guests