Solved

Jerky movements in Flash

Posted on 2008-10-14
6
675 Views
Last Modified: 2012-08-13
I'm noticing more and more how jerky the motion looks in Flash. Take a look at this file to see what I mean:
http://www.discretedata.com/Ex-Ex/FlashTests/RedSquare.swf   The red square makes it look really obvious and awful but I notice the same thing with all movement.  This file is at 24 fps, but it's noticeabl even at 120 fps.
I'm using Flash CS3.  Could there be something wrong with my version or my computer?

Thanks, John
0
Comment
Question by:gabrielPennyback
  • 4
  • 2
6 Comments
 
LVL 15

Expert Comment

by:MMDeveloper
ID: 22715556
it's jerky on mine too.. it's probably being scrolled via code and the x coordinate is being incremented by a large number, such as 50, so even at 120fps, it's still jumping 50 pixels per movement, hence, jerky.
0
 
LVL 1

Author Comment

by:gabrielPennyback
ID: 22716609
There's no code in my SWF,  just a tween on the timeline.  Do you have any examples of smooth motion for which you could send me a link to the FLA file?  

John
0
 
LVL 15

Expert Comment

by:MMDeveloper
ID: 22716708
It might also be the distance it has to travel and the time it has to do it in which causes the larger "jumps" on each frame. I'll make a small animation with a given distance to travel and plenty of time to do it, it should be smooth.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 15

Accepted Solution

by:
MMDeveloper earned 500 total points
ID: 22716768
http://www.mechanicmatt.com/temp/ee/Q_2381431/

I can replicate the jerkyness on command..

The top movie is 40 frames per second, and the movie is 100 frames long (movie is 2.5 seconds long)

The 2nd movie is 20 frames per second and 20 frames long (one second movie)

the bottom movie is 40 frames per second and 200 frames long (5 second movie)


in each movie, the  box covers the same distance. It's all a matter of the framerate and how much time it has to cover the distance. The flash player does the math to calculate how much of a "jump" for the box to make on each frame to accomplish the distance given the speed and time limit.
0
 
LVL 1

Author Comment

by:gabrielPennyback
ID: 22723427
RE: ... and the x coordinate is being incremented by a large number, such as 50 ...

This is intriguing. Since I'm not using code, hoe would I set the x coordinate?  Better still how what would the AS look like that would produce the same rolling ball?  If that requires more than two minutes to figure out, let me know and I'll post a new question.

Thanks again.

John


0
 
LVL 15

Expert Comment

by:MMDeveloper
ID: 22730255
You'd just need to give it more time to make the move. Set the last frame further down the timeline. It will slow it down but it will also smooth it out.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question