See this demo first ( Capx ),
Document, plugin and sample capx file are included.
Compare with Pode 's SplinePath behavior
Here is my new spline behavior.
Thank you for this!
Looks like there's a bug for when its not looping:
https://www.dropbox.com/s/uzg3ns9f8jtd3 ... .capx?dl=0
And its not looping when it's set to yes.
Fix the behavior of Looping.
Thanks for reply. I had fixed it.
Thanks a bunch.
Really been wanting something like this.
Great!, watching the documentation I observed that "tension" is included, perfect.
Its not a real big deal, but as a suggestion it could use some point indexing like the path finding behavior does.
xy at point index, and current index, etc
It's not like we can't create our own lists.
See the document and sample capx.
Good suggestion! I had added them.
I'm not seeing how this works:
Get points or a point or x/y of a point. Add 1st parameter for index of point, add 2nd parameter "x" or "y" or 0 or 1 to get x/y of a point.
The expression just shows:
Get X/Y co-ordinate of start or end point by
Expression:CurSegP0( 0 ) or Expression:CurSegP0( "x" ) , X co-ordinate of start point
Expression:CurSegP0( 1 ) or Expression:CurSegP0( "y" ) , Y co-ordinate of start point
Expression:CurSegP1( 0 ) or Expression:CurSegP1( "x" ) , X co-ordinate of end point
Expression:CurSegP1( 1 ) or Expression:CurSegP1( "y" ) , Y co-ordinate of end point
See the sample capx in document.
rexrainbow I got an error when opening your capx demo project. Also tried to access the 'CurSegP0' expression in the expression list, but nothing shown there.
A bug maybe?
edit: FYI, my plugins are all up to date and i'm currently using C2 beta release 230
edit #2: Sorry.. sorry... my mistake. i didn't realize the latest version. It's all fixed now.
Ok so to get the end x, and y of the current point:
Develop games in your browser. Powerful, performant & highly capable.
Or get position of end point by ( Expression:CurSegP1( "x" ) , Expression:CurSegP1( "y" ) )
Ok, that would be simpler.