# Continuous Movement Help please!

**URL:** <https://forum.kirupa.com/t/continuous-movement-help-please/106774>\
**Category:** Uncategorized\
**Created:** [April 8, 2004, 7:23pm UTC](https://forum.kirupa.com/t/continuous-movement-help-please/106774 "2004-04-08T19:23:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JenniferSal](https://avatars.discourse-cdn.com/v4/letter/j/ce73a5/32.png) [@JenniferSal](https://forum.kirupa.com/u/JenniferSal)\
**Post date:** [April 8, 2004, 7:23pm UTC](https://forum.kirupa.com/t/continuous-movement-help-please/106774/1 "2004-04-08T19:23:19Z")

</div>

Hi! I’ve got this fla that i made using the continuous movement tutorial on this site. I have a few questions though, i was hoping someone could help me with.

[http://www.meatloaf-multimedia.com/test/menu1.fla](http://www.meatloaf-multimedia.com/test/menu1.fla)  
is the file.

My first question is, Im having trouble getting the squares and circles to not disappear - ive tried different numbers in the actionscript like the tut. says, but it still vanishes! Any ideas??

Also, I figured out what to take out to make the moving objects not shrink and enlarge if i wanted that, but is there a way to make the movement go in other directions as well as horizontally or even come towards the viewer?

The final one is, how can i get it to not go so darn fast at times?

Thanks for any help at all, its MUCH appreciated!!

Jen

---

<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 8, 2004, 7:45pm UTC](https://forum.kirupa.com/t/continuous-movement-help-please/106774/2 "2004-04-08T19:45:49Z")

</div>

Try this and compare the codes:

```auto
onClipEvent (enterFrame) {
    // generating movement
    location = this._x;
    var i;
    i = 1-_root._xmouse/100;
    if (this, hitTest(_root.block)) {
        this._x = -20;
    } else {
        this._x = location+i--;
    }
    // clips are scaled according to y-mouse;
    this._xscale = 40+_root._ymouse;
    this._yscale = 40+_root._ymouse;
}

```

It has to do with incrementing numbers, and changing “+” to “-”.  
Hope it helps.

---

<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 8, 2004, 7:55pm UTC](https://forum.kirupa.com/t/continuous-movement-help-please/106774/3 "2004-04-08T19:55:26Z")

</div>

Hi! That made it slower definitely (thanks!!) but i still get the vanishing moving images after a little. Do you have an idea how to get them to wrap back around better? Im clueless, been sitting here for a while trying though!

Im also getting confused a little, as in the tutorial, it said if your swf was going to be bigger then 300 width, then to adjust the -1000 in the actionscript (to get it to wrap quicker), which i had at -1300 and still had the problem (vanishing), but you put it at -20? And again, thanks for all your help!!

Jen

---

<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 8, 2004, 8:42pm UTC](https://forum.kirupa.com/t/continuous-movement-help-please/106774/4 "2004-04-08T20:42:14Z")

</div>

You can get all sorts of references in the AS panel, check what  
all these //++()[]% stand for, it helps. Also check the button in the  
right upper corner that looks like a book.

btw, my MC’s never vanish of the stage, no matter what size.

---

<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 8, 2004, 8:49pm UTC](https://forum.kirupa.com/t/continuous-movement-help-please/106774/5 "2004-04-08T20:49:15Z")

</div>

Sorry, i dont know what im doing wrong then, because even when i tried out your script it eventually went off the screen as well, just at a slower pace then what i came up with originally. Maybe ive been staring at this for too long and just cant see what im easily doing wrong. I’ll keep at it though, and really do appreciate the help! Thanks.

Jen

---

<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 8, 2004, 9:07pm UTC](https://forum.kirupa.com/t/continuous-movement-help-please/106774/6 "2004-04-08T21:07:02Z")

</div>

Sorry, i THINK Ive figured out what ive been doing wrong! Thanks SO much for your help, its MUCH appreciated and helped big time!!

Jen
