This kind of question gets asked a lot. Short answer: use a boolean variable. Test against this in the move() method and only move if it is true. Set the boolean to true when mouse is pressed...
Leave a comment on blindfish's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic