How do I make an object follow a path

Get help using Construct 2

Post » Thu Dec 18, 2014 10:18 pm

Hey guys,

I couldnt figure out how to made an object follow a path.

Image

Any clue is greatly appreciated.
Image
B
58
S
25
G
39
Posts: 449
Reputation: 23,723

Post » Thu Dec 18, 2014 10:53 pm

There are no path objects in construct. You can 'fake it' by placing objects as 'marks', and moving your followers from marker to marker.

Using commands like qarp and cubic, you can smooth the movement between points so objects travel along a curve. Unfortunately, it's difficult to visualize this in the editor, which severely limits how practical this approach is in a real game, especially if you have multiple paths.

One place where it might be practical is for a racing game, as there would only be one path, and you would have a visual representation courtesy of your track itself. You could possibly use the 'car' behavior and simply turn toward a point; the physics built into the behavior should smooth the movement from point to point into a curve.

Here is a crude implement of my own, made for a different purpose, using the qarp command to control movement between points.

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

One day, hopefully, we'll get a proper path tool.
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,187

Post » Tue Dec 30, 2014 1:59 pm

@TiAm Soryy for the late answer and thanks a lot! I figured out something with car behavior.
Image
B
58
S
25
G
39
Posts: 449
Reputation: 23,723


Return to How do I....?

Who is online

Users browsing this forum: Manubis, Ryan Kocourek, TheSupreme, TylerJS and 10 guests