# Scope Movement

**URL:** <https://forum.kirupa.com/t/scope-movement/235505>\
**Category:** flash\
**Created:** [August 12, 2007, 2:10am UTC](https://forum.kirupa.com/t/scope-movement/235505 "2007-08-12T02:10:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wsp](https://avatars.discourse-cdn.com/v4/letter/w/e47774/32.png) [@wsp](https://forum.kirupa.com/u/wsp)\
**Post date:** [August 12, 2007, 2:10am UTC](https://forum.kirupa.com/t/scope-movement/235505/1 "2007-08-12T02:10:35Z")

</div>

Hello, I was wondering how can I get a scope to smoothly randomly move around the screen? All I have is this code: _\_x += (-5 + random(10)), \_y += (-5 + random(10)),_ But that’s way to jerky and choppy to work. Any help would be great, and im also making the scope’s x and y points equal to that of the mouse, so if it can work whilst the cursor is being dragged that would be great! thx, wsp
