Drawing a curved line from A to B

1

Attached Files

The following files have been attached to this tutorial:

.capx

Stats

3,630 visits, 4,896 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Published on 1 Feb, 2015. Last updated 19 Feb, 2019

One method of drawing a curved line from A to B Using Pathfinding and lerp.

Try moving the blue box sprite(2) around in the layout to change the shape of the Bridge, move it into the water to make the Bridge curve the opposite way.

Hope this has been of some help.

Cheers

.CAPX
  • 1 Comments

  • Order by
Want to leave a comment? Login or Register an account!
  • This looks like very clever code. I tried it in c2 by pressing 'run layout' and arrow keys. the wheel moved over the bridge, but didn't affect the curve. I expected the curve shape to change based on where the wheel is.