# Moving sprite along drawn line

**URL:** https://forum.kirupa.com/t/moving-sprite-along-drawn-line/296701
**Category:** Uncategorized
**Created:** [September 18, 2009, 2:55pm UTC](https://forum.kirupa.com/t/moving-sprite-along-drawn-line/296701 "2009-09-18T14:55:52Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mthicke](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@mthicke](https://forum.kirupa.com/u/mthicke)
#### Post date: [September 18, 2009, 2:55pm UTC](https://forum.kirupa.com/t/moving-sprite-along-drawn-line/296701/1 "2009-09-18T14:55:52Z")

</div>

hi,

I want to the user to be able to draw a line and then have a sprite follow the line as its path. Also, it would be nice if the line could be cleaned up after the user draws it with his/her mouse so that it is made up of clean curves/spline.

if you know of any code examples or finished flash examples that have this functionality please post. any help greatly appreciated.

thanks
