# Hickups when going from one .OnEnterFrame to another

**URL:** https://forum.kirupa.com/t/hickups-when-going-from-one-onenterframe-to-another/172101
**Category:** Uncategorized
**Created:** [December 11, 2005, 9:14am UTC](https://forum.kirupa.com/t/hickups-when-going-from-one-onenterframe-to-another/172101 "2005-12-11T09:14:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Ozymandias](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ozymandias/32/1997_2.png) [@Ozymandias](https://forum.kirupa.com/u/Ozymandias)
#### Post date: [December 11, 2005, 9:14am UTC](https://forum.kirupa.com/t/hickups-when-going-from-one-onenterframe-to-another/172101/1 "2005-12-11T09:14:47Z")

</div>

Is there a way to do this without causing slight hickups when switching from one to the other? It seems the most flexible and modular way to code various movements is with seperate .OnEnterFrames in different functions for different actions like accelerating, decelerating, or moving at max speed.

Am I going about giving the illusion of inertia correctly with this approach?
