# Bizzare movement issue

**URL:** <https://forum.kirupa.com/t/bizzare-movement-issue/314713>\
**Category:** flash\
**Created:** [October 6, 2010, 8:13pm UTC](https://forum.kirupa.com/t/bizzare-movement-issue/314713 "2010-10-06T20:13:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![999chris](https://avatars.discourse-cdn.com/v4/letter/9/f17d59/32.png) [@999chris](https://forum.kirupa.com/u/999chris)\
**Post date:** [October 6, 2010, 8:13pm UTC](https://forum.kirupa.com/t/bizzare-movement-issue/314713/1 "2010-10-06T20:13:38Z")

</div>

I have a movieclip moving across the stage.

It basically simulates an aircraft movement in a drop down view.

Ok… anyway skipping a load of the fuss.

I have an “xspeed” variable and that is set with: **Math.cos(radians)\*(vel/10000)**;

The “vel” variable is (in this instance 150), I use a 3 digit number to reference the realistic knots speed of an aircraft, then divide it by 10,000 to get a number that is less so I can use that to animate the movie clip, rather than moving 150px a frame for instance… 0.015

I use x+=xspeed to move the movieclip along the x axis.

anywho, the issue im having is that if the xspeed is ever greater than 0 the movieclip wont move at all, however if it is less that 0 it moves to the left. Also if I divide vel by 1000 instead. It moves fine in all directions fine, however FAR too fast. any idea why the value of x will be changed when its -0.015 and not 0.015???
