# Why movieclips are moving at different speeds?

**URL:** https://forum.kirupa.com/t/why-movieclips-are-moving-at-different-speeds/308007
**Category:** Uncategorized
**Created:** [April 15, 2010, 12:48am UTC](https://forum.kirupa.com/t/why-movieclips-are-moving-at-different-speeds/308007 "2010-04-15T00:48:48Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![genericguy](https://avatars.discourse-cdn.com/v4/letter/g/5daacb/32.png) [@genericguy](https://forum.kirupa.com/u/genericguy)
#### Post date: [April 15, 2010, 12:48am UTC](https://forum.kirupa.com/t/why-movieclips-are-moving-at-different-speeds/308007/1 "2010-04-15T00:48:48Z")

</div>

Can anybody tell me why these two movieclips are moving at different speeds? I would like them to be moving at the same speed (while increasing xspeed every second).

actionscript 2, flash mx.

```auto

var xspeed = 1;

countDown = function () {
     xspeed += .05;
};
timer = setInterval(countDown, 1000);

onEnterFrame = function () {
        mountains1._x -= xspeed/8;
        mountains2._x -= xspeed/8;
};

```
