# Code to add 'ease' to this

**URL:** <https://forum.kirupa.com/t/code-to-add-ease-to-this/176743>\
**Category:** Uncategorized\
**Created:** [January 26, 2006, 4:08pm UTC](https://forum.kirupa.com/t/code-to-add-ease-to-this/176743 "2006-01-26T16:08:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Claire\_murphy](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Claire\_murphy](https://forum.kirupa.com/u/Claire_murphy)\
**Post date:** [January 26, 2006, 4:08pm UTC](https://forum.kirupa.com/t/code-to-add-ease-to-this/176743/1 "2006-01-26T16:08:10Z")

</div>

Finally got the movement I needed :beam: …But can anybody add the ‘ease’ code to this? (think thats the right term…meaning to slow the movement down as it reaches it’s end position) =)

onClipEvent (load) {  
//this sets the initial x position of our clip  
this.\_x = 550;  
}  
onClipEvent (enterFrame) {  
//this moves our clip 5 pixels to the right every frame until it reaches a certain point  
if (\_root.small.\_x\>550) {  
\_root.small.\_x += -20 ;  
} else if (\_root.small.\_x\>200) {  
this.\_x += -20 ; \_root.small.\_x += -20 ;  
}  
}

last bit of help needed!!! Wahoooo (well…for now!)
