# Seamingly easy movement?

**URL:** <https://forum.kirupa.com/t/seamingly-easy-movement/116256>\
**Category:** Uncategorized\
**Created:** [July 15, 2004, 11:16pm UTC](https://forum.kirupa.com/t/seamingly-easy-movement/116256 "2004-07-15T23:16:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnnyFlash](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@johnnyFlash](https://forum.kirupa.com/u/johnnyFlash)\
**Post date:** [July 15, 2004, 11:16pm UTC](https://forum.kirupa.com/t/seamingly-easy-movement/116256/1 "2004-07-15T23:16:04Z")

</div>

I have a block that i’m trying to make move from right to left, and if the block gets to a certain point, it will move back to it’s original position.  
So, i have this on my block (movieclip) rightnow

```auto

 onClipEvent(enterFrame) {
 	speed = 3
 	dist = 8.5
 	_x -= speed;
 	if (_x = dist) {
 		_x += 3
 	}
 }
 

```

But all this is doing is throwing the block at the 8.5 distance…

any help??? Thanx in advance
