# Direct movement to point

**URL:** <https://forum.kirupa.com/t/direct-movement-to-point/290752>\
**Category:** flash\
**Created:** [June 19, 2009, 3:10am UTC](https://forum.kirupa.com/t/direct-movement-to-point/290752 "2009-06-19T03:10:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sonolin](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@Sonolin](https://forum.kirupa.com/u/Sonolin)\
**Post date:** [June 19, 2009, 3:10am UTC](https://forum.kirupa.com/t/direct-movement-to-point/290752/1 "2009-06-19T03:10:54Z")

</div>

Hello,

I currently have a flash chatroom up and running but there is a minor snag. The only way I can explain is through demo. See: [http://sonolin.homelinux.org:1337/](http://sonolin.homelinux.org:1337/)

EDIT: I made a very short video for those who do not wish to log into the chatroom - it shows the problem clearly. Loc: [http://sonolin.homelinux.org/media/pkchat/movement\_problem.avi](http://sonolin.homelinux.org/media/pkchat/movement_problem.avi)

Go in chat and click anywhere on screen. You will see the sprite move as the client describes “along a train track”. How can I just make the sprite move directly towards a point upon mouse click?

Thank you. It is probably very simple indeed I’m just not in a math thinking mode right now ;).
