# What is the best way to deal with very slow 2d motion?

**URL:** <https://forum.kirupa.com/t/what-is-the-best-way-to-deal-with-very-slow-2d-motion/281802>\
**Category:** programming\
**Created:** [February 13, 2009, 10:42am UTC](https://forum.kirupa.com/t/what-is-the-best-way-to-deal-with-very-slow-2d-motion/281802 "2009-02-13T10:42:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![awflasher](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/awflasher/32/3562_2.png) [@awflasher](https://forum.kirupa.com/u/awflasher)\
**Post date:** [February 13, 2009, 10:42am UTC](https://forum.kirupa.com/t/what-is-the-best-way-to-deal-with-very-slow-2d-motion/281802/1 "2009-02-13T10:42:06Z")

</div>

Making Motion in AS3 is not hard, but to make a very very slow motion, I met a lot of troubles today.

Well, I have some stuff on my stage and I wanna move them very very slowly, using a “Timer”, then I have two ways to go. But both of them have disadvantages.

**1) Make the interval as small as possible, and add 0.005 to sprite.x in each time handler;**

Disadvantage:

I’m afraid Flash was working in a strange way since as2 when dealing with small float numbers, sometimes the x value of a sprite is even not changing when “[FONT=Courier New][COLOR=Navy]sprite.x += 0.005[/COLOR][/FONT]” is executed.

**2) Add 1 to sprite.x in each time handler but make the interval much bigger.**

Disadvantage:

To let the sprite move in a bigger interval could also slow it down, even save a lot of the CPU cost. But then the animation is performing very bad smoothing.

So is there anybody who has a better solution for this case? Maybe not using Timer? Anyway, thanks in advance!
