Flex Framerate / Movement Woes

12.01.2008

I’ve been experimenting a bit more with Flex, but seems to have hit a roadblock on my next project. I want to build an Arkanoid clone, but so far have not found a suitable way to move a (png) ball across the screen smoothly.

Currently, my efforts look like this:

Arkanoid Test 1

http://www.topholt.com/Arkanoid/bin-release/Arkanoid.html

Use the slider at the bottom to change movement speeds (not FPS, but number of pixels moved each time).

I’ve updated the framerate of the Flex application to 99 fps, but still movement is very jerky.

I have tried using the FRAME_ENTER event to move the ball. I have tried using a Timer. I’ve tried it with and without a background image. I’ve tried using a Move object and intercepting collisions. It all looks the same. Nothing gets me the results I’m looking for.

Is it really not possible to move a ball smoothly? Someone please help!