# Bezier Spline Paths? UPDATED for ASHLEY's Brain!!!

Discussion and feedback on Construct 2

### » Sun Sep 14, 2014 10:22 am

Hey Ashley .....

I was just wandering around today & I was thinking about something that would be 'Amazing' (understatement of the year)
if it is possible to implement..

I would like to see in Construct 2 a new set of Objects

Bezier Path Loop This would be a closed loop comprised of Bezier Curves & nodes
&
Bezier Path Spline This would just be a Bezier Spline with two end node points

A graphical example of what I mean...

The idea would be ..You drag a Bezier Object into the Layout & set its number of nodes & then use drag handles to make the shape you need, and then The Bezier Object would function as a Custom movement path or as easy Solid or Physics Platforms... So each path would need to have built in variables like,

-Number of Nodes(for adjustment)
-Path speed ( the speed at which objects travel along it including Adjustment integration via Events)
other stuff that you might think of..

& also allow the Beziers to be affected by Various Behaviours..say for example....
-Sine (may cause buggy or interesting movements)
-Rotate
-Timer
-Solid & Jumpthru Could be a nice feature for building Spline based levels like seen here http://www.simbryocorp.com/Ferr2DTerrain/

Obviously it is not reasonable to expect that all Behaviours would work correctly but whatever does work would be cool...etc

The main purpose of the Bezier Path Objects is to allow any other objects to move along the Bezier object path...at various speeds, accelerations & interpolations etc

Event sheet Conditions for the Objects could include

-On path start,
-On path End,
-On loop complete,(for each time the Object completes one pass of the Loop, collect \$200 )

Events could be
-Move Object along Path by Direction...(left or right, clockwise, anti clockwise, whatever)
-Move Object along Path (Fixed Angle)
-Move Object along path (Perpendicular to Spline)
-Reverse Direction of Object movement
-Set Speed of Spline Path
-Set Acceleration of Spline Path
-Stop Object on path (defunct if able to set speed)
-Drop Object off path (or 'Destroy' Bezier)
-Add Object to Path at Node

-etc

Easing Motions along the Beziers Paths would be awesome as well..Maybe added as a Behaviour?....

I know we already have motion tweening and whatnot & that we do have these math functions in C2 ..but this would really add some groovy features if it could be made into a Behaviour ...or set of Behaviours, like
- Quadratic Motion Ease..
- Linear Motion Ease..
- Etc

Or perhaps It would be better to build these Motion Eases into the Properties of the Path object

So we could with the click of a button have linear, cubic, circular, sine, quad or exponential interpolations along the spline path...
and even better yet....

Different Interpolations "Between 'each' node of the entire spline path"

ie: between node 1 & 2 you have linear motion & then between 2 & 3 you have exponential...etc

O M G ! ! !

Then,
for Animations and motions....etc... We could do stuff like this
http://www.motionscript.com/articles/bounce-and-overshoot.html
with the click of a few buttons..

That would be pure legendary level stuff..

The Interpolations would work out, a little like this, Ashley...if you get what I mean http://gizma.com/easing/

I know its a big Ask...but it would be soooooooo Awesome...

is it doable?

Would love to see this as a permanent feature in Construct 2

What do you think?
Last edited by mystazsea on Sun Sep 14, 2014 4:09 pm, edited 14 times in total.
When in doubt..or you are lost in a Zombie apocalypse or someone is giving you a hard time..Remember one thing..... Read the Construct 2 Manual..it will save your life.:)
B
36
S
13
G
8
Posts: 318
Reputation: 7,710

### » Sun Sep 14, 2014 11:17 am

This would be amazing. Many times I wished that this was real. It would be amazing for level design or AI behaviour.
B
37
S
5
G
2
Posts: 46
Reputation: 3,854

### » Sun Sep 14, 2014 2:39 pm

There is plugin in plugin section that should do that.
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
93
S
30
G
22
Posts: 1,987
Reputation: 20,203

### » Sun Sep 14, 2014 11:54 pm

@mystazsea ,

Oh man! You sir, are expressing fluently all those thinks that I wish for in my post! And you do that ate the same that I post it. And obviously you haven't read mine just as I read yours now!!! What are the chances?! I think that the stars are telling us that Ashley is actually going to add paths into the beta 181!!!

Well said sir, well said!
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379

### » Mon Sep 15, 2014 8:08 am

well you know what they say.."great minds thinking" and whatnot...
My bet is that Ashley has already started the process..hehe
Maybe we are all on the same wavelength....Synchronism at work ?
When in doubt..or you are lost in a Zombie apocalypse or someone is giving you a hard time..Remember one thing..... Read the Construct 2 Manual..it will save your life.:)
B
36
S
13
G
8
Posts: 318
Reputation: 7,710

### » Mon Sep 15, 2014 10:32 am

i totally support this
B
23
S
6
G
3
Posts: 316
Reputation: 3,461

### » Mon Sep 15, 2014 11:29 am

@megatronx The problem with 3rd party plugins is that you never know when the author is losing his motivation and they get abandoned. I got burned badly by this, so I won't use anything but factory plugins (and my own) for commercial projects.
B
83
S
29
G
32
Posts: 486
Reputation: 20,030

### » Mon Sep 15, 2014 1:27 pm

I didn't check, if Megatronx is right. But assuming, there is a plugin that does all that is asked for here:

You would already have a solution to work with, but ignore it, just because it wasn't done by Ashley? While that is a great compliment showing the trust in Ashley, it isn't very fair to all those 3rd party plugs, is it? I mean, if the plug works now, is offered for free in the plugs section and you're now needing it, why hesitating? Has anyone hesitated to buy a smartphone, although knowing that it won't work with future standards (just think of LTE)?
B
24
S
8
G
10
Posts: 1,821
Reputation: 8,289

### » Mon Sep 15, 2014 1:50 pm

tulamide wrote:I didn't check, if Megatronx is right. But assuming, there is a plugin that does all that is asked for here:

You would already have a solution to work with, but ignore it, just because it wasn't done by Ashley? While that is a great compliment showing the trust in Ashley, it isn't very fair to all those 3rd party plugs, is it? I mean, if the plug works now, is offered for free in the plugs section and you're now needing it, why hesitating? Has anyone hesitated to buy a smartphone, although knowing that it won't work with future standards (just think of LTE)?

Different situation, he's not an end-user, he's a developer. He might be developing a game he's going to sell, and if you're going to ship a product reliant on third-party components that may give up at any time and be unsupported, therefore, potentially making any game-breaking bugs irreparable... then you see the potential issue. Combine that with the fact that @Eisenhans did suffer something similar judging by his wording, his avoidance is completely validated. If they hadn't experienced a set-back, loss or massive stress (or all of the above), avoiding third-party plug-ins because of a 'just-in-case' notion is still not a bad thing. Concern and caution are good measures to take.
Founder of Jadelight Studio, Developer of Libertas Aedifex, regular C2 Help contributor and fan of ambient music and Star Wars.
B
12
S
4
Posts: 255
Reputation: 2,008

### » Mon Sep 15, 2014 2:00 pm

@mystazsea well, in this case, I hope that it is quantum entanglement in all it's "spooky action at a distance" glory!

@megatronx , If you are referring to the SplinePath, it looks to me that it does just the basic stuff and it's only controllable through events. Mystazsea describes in every detail an implementation of a spline tool that will be very useful and easy to use.
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379

Next