How do I generate a path between points?

Get help using Construct 2

Post » Fri Nov 09, 2012 2:40 am

It looks like you are using a Spline Plugin. I haven't used that, so I couldn't tell you if what you posted would work or not. I'd check with the author of the plugin just to be sure.
B
6
S
1
Posts: 37
Reputation: 774

Post » Fri Nov 09, 2012 3:45 am

Here is a .capx for you.

https://www.dropbox.com/s/ajext92wiwcqszb/PointLineTerrain.capx

I believe this is what you want. I also set the origin of the Line sprite to the left side so I can set it's width to the distance between itself and the next point. I added a few more things. Variables so you can change the spacing between each point and the scale (min/max height) of each point in the terrain.

I added a DestroyOutsideOfLayout to the Point sprite. I couldn't figure out how to break the point spawning loop once the edge of the screen was reached. Any ideas from anyone else on how to fix that?

Hope this helped.
B
4
G
2
Posts: 12
Reputation: 1,249

Post » Sat Nov 10, 2012 8:45 pm

I now have thisand I don't see why it shouldn't work, it should spawn a green dot between each point, but it doesn't.
Nothing goes unanswered!
B
22
S
5
G
1
Posts: 430
Reputation: 3,383

Post » Sun Nov 11, 2012 3:01 am

Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Previous

Return to How do I....?

Who is online

Users browsing this forum: LeFuji and 22 guests