How can I create a curved line/rail ?

Get help using Construct 2

Post » Thu Aug 25, 2016 5:15 pm

Hello, how can I create a curved line/rail ? I want to make something like the following:
Image
or this (the 3rd image):
Image
Is there any better way than to create small sprites and place them ? Perhaps Tilemap would be a good idea ?
B
49
S
15
G
6
Posts: 534
Reputation: 7,195

Post » Fri Aug 26, 2016 2:28 am

For the first image it looks like you could do it with a bunch of sprite pieces. It could be tedious to place by hand. Using a tilemap would work if the tiles match up when placed on a grid. At first glance that tile set doesn't look like it would.

For the second image there are two parts to it: making something look like that and collisions. You could use the canvas object to draw stuff like that. The paster object could also do it using the draw quad action, although it would take some math to position the corners.

For collisions you could stretch a rectangular Sprite to make a line, although the corners would need more work to do.
B
92
S
32
G
106
Posts: 5,272
Reputation: 69,455

Post » Fri Aug 26, 2016 5:22 am

r0j0-039-s-experiments_t91829
Maybe like ski terrain? Although I never figured out how exactly you got it smooth at the joints like that.
Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458

Post » Fri Aug 26, 2016 6:09 am

In that example I just made the lines overlap a bit. It works well for wide angles, but won't look as good for sharper ones.
B
92
S
32
G
106
Posts: 5,272
Reputation: 69,455


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests