# CurveTo() with from mousedown to the mouseX, mouse Y

**URL:** <https://forum.kirupa.com/t/curveto-with-from-mousedown-to-the-mousex-mouse-y/325585>\
**Category:** flash\
**Created:** [October 24, 2011, 9:46pm UTC](https://forum.kirupa.com/t/curveto-with-from-mousedown-to-the-mousex-mouse-y/325585 "2011-10-24T21:46:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cermunnos](https://avatars.discourse-cdn.com/v4/letter/c/ebca7d/32.png) [@cermunnos](https://forum.kirupa.com/u/cermunnos)\
**Post date:** [October 24, 2011, 9:46pm UTC](https://forum.kirupa.com/t/curveto-with-from-mousedown-to-the-mousex-mouse-y/325585/1 "2011-10-24T21:46:36Z")

</div>

Anybody got a method of drawing a line from the mouse down point to the mouses current position.

But taking into account the direction the mouse is moving in to make the curve look more natural and directional.

This is what i have currently which is basic and rubbish:

catapultLine.graphics.moveTo(startX, startY);  
catapultLine.graphics.curveTo(Main.gameStage.mouseX/3, Main.gameStage.mouseY/3,Main.gameStage.mouseX, Main.gameStage.mouseY);
