# Need help with "Creating Continuous Movement"

**URL:** <https://forum.kirupa.com/t/need-help-with-creating-continuous-movement/18804>\
**Category:** Uncategorized\
**Created:** [April 21, 2003, 12:39pm UTC](https://forum.kirupa.com/t/need-help-with-creating-continuous-movement/18804 "2003-04-21T12:39:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fred](https://avatars.discourse-cdn.com/v4/letter/f/db5fbb/32.png) [@fred](https://forum.kirupa.com/u/fred)\
**Post date:** [April 21, 2003, 12:39pm UTC](https://forum.kirupa.com/t/need-help-with-creating-continuous-movement/18804/1 "2003-04-21T12:39:06Z")

</div>

hey i tried out the “Creating Continuous Movement” tutorial and there’s a problem. Each time my I roll my mouse to the far right end the dot kinda dissapear into the thing air and never came back out again. What is wrong with the animation huh? 🔗

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 21, 2003, 12:49pm UTC](https://forum.kirupa.com/t/need-help-with-creating-continuous-movement/18804/2 "2003-04-21T12:49:01Z")

</div>

well if you followed the tutorial wrong, i’m not sure what could be wrong. I think i needa take a look at your fla if thats possible…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 21, 2003, 12:55pm UTC](https://forum.kirupa.com/t/need-help-with-creating-continuous-movement/18804/3 "2003-04-21T12:55:07Z")

</div>

oh okay sure!! thanks for helping! hey by the way how do i send you the file?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 21, 2003, 12:57pm UTC](https://forum.kirupa.com/t/need-help-with-creating-continuous-movement/18804/4 "2003-04-21T12:57:16Z")

</div>

try this??

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 21, 2003, 4:01pm UTC](https://forum.kirupa.com/t/need-help-with-creating-continuous-movement/18804/5 "2003-04-21T16:01:44Z")

</div>

instead of these lines:

```auto
if (this, hitTest(_root.block)) {
	this._x = -1000;
} else {
	this._x = location+i++;
}

```

use something like this:

```auto
if (this._x>300) {
	this._x = -1000;
} else {
	this._x = location+i++;
}

```

😉 =)
