# Using AS for smooth motion tween - decelerate to stationary

**URL:** <https://forum.kirupa.com/t/using-as-for-smooth-motion-tween-decelerate-to-stationary/37219>\
**Category:** flash\
**Created:** [December 7, 2003, 11:55am UTC](https://forum.kirupa.com/t/using-as-for-smooth-motion-tween-decelerate-to-stationary/37219 "2003-12-07T11:55:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NoodlesDunn](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/noodlesdunn/32/383_2.png) [@NoodlesDunn](https://forum.kirupa.com/u/NoodlesDunn)\
**Post date:** [December 7, 2003, 11:55am UTC](https://forum.kirupa.com/t/using-as-for-smooth-motion-tween-decelerate-to-stationary/37219/1 "2003-12-07T11:55:02Z")

</div>

Bit of a newbie with ActionScript, so apologies :be:

I have an icon of a railway train which pulls into a station. At the moment it is a motion tween, and I have had to edit every few frames, modifying the train’s position, so that it slows down as it enters the station.

This is messy, and time consuming.

Is it possible for someone to give me guidance on how to slowly decelerate an object? The train is almost isometric, so doesn’t actually move horizontally; but “south-westerly” across the landscape:

![](http://www.nick-dunn.co.uk/files/vv_loco.jpg)

Any thoughts much appreciated!
