# Continual movement

**URL:** <https://forum.kirupa.com/t/continual-movement/291935>\
**Category:** flash\
**Created:** [July 7, 2009, 8:29pm UTC](https://forum.kirupa.com/t/continual-movement/291935 "2009-07-07T20:29:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![guitarzen](https://avatars.discourse-cdn.com/v4/letter/g/5f9b8f/32.png) [@guitarzen](https://forum.kirupa.com/u/guitarzen)\
**Post date:** [July 7, 2009, 8:29pm UTC](https://forum.kirupa.com/t/continual-movement/291935/1 "2009-07-07T20:29:30Z")

</div>

I want to have something on the screen move at a constant speed when a button is pressed. I’m not sure how to go about it. I have this for it to move 5 pixels at a time but I want it to move continually on holding the mouse down.

on (release) {  
\_root.bar.ball.\_x += 5;  
}
