Jerky tweening jerk
- Started
- Last post
- 14 Responses
- zr
Doing a slow pan of an image in Flash which has a jerky motion when it moves slowly, whether it's between two linear keyframes or an eased tween.
I changed the framerate of the project from 24 to 60fps and tried different image formats and arrangements in Flash... running out of ideas though - anyone know how to solve this?
(It's for banners which are pretty much finished so wouldn't be keen on starting from scratch)
- vaxorcist0
can you post a URL? have you tried a newer PC with fast graphics card?.... but if it's for banners, you may have to make it work on slower machines....
- sleepyfatso0
Is it an image image (jpg or gif or png)? If so, do you have allow smoothing clicked on?
- zr0
It's a png which has allow smoothing on.
It is for banners so performance is certainly a consideration, don't know if this is Flash getting choked up or some oddity with the tweening though.
Cannot post it sorry.
- zr0
Yep that's what I'm coming to terms with
- Continuity0
If you're using AS2, you can also use FuseKit.
- ahli0
without seeing the file its hard to help.
Perhaps ensure that the symbol is on a rounded X,Y cord, so instead of X:101.16 try and keep it to X:101.
its a long shot, but generally pans from left to right (or vice versa) dont work too well, up and down seems better.
Its the same in after effects also.
- nuggler0
limiting the tween to either x or y can make it smoother. The problem is when it rounds the numbers a little differently on each frame.
- mikotondria30
might not even need a tweener package if you just want to do like:
object.x -= 0.5; or similar..
Should be able to do it in one line in an onEnterFrame event..
- zr0
Thanks all for your suggestions
- fyoucher10
A tweening engine (tween nano etc) isn't going to fix it, you have to do it manually. Putting the image on an even pixel integer 'will' get rid of the jerkiness but then it's moving one pixel per frame which could be too fast.
Here's what I do that usually will fix the problem.
- Obviously make sure you have bitmap smoothing turned on. Optionally, add a filter with the effects turned all the way down (this will take the' bitmap smoothing not working' out of the equation. you never know).
- Scale the image up slightly (ie. like 101%). Only do this if your image doesn't have crisp edges, otherwise it will blur the image too much.
- And finally ---- Keyframe it and manually enter X/Y positions. Sometimes your image is moving sooo slowly that it will move 0.1 pixels for more than one frame, then when it gets to the next frame it moves the image again, which makes it look jumpy. It needs to be moving somewhat EVERY frame. So, with that in mind, select all of the frames in the tween, and then turn it into a frame by frame animation. Then working backwards, making sure that the image is moving constantly. Depending on what kind of easing you have applied, you may have to do some math to figure out how many tenths of a pixel the image should be moving.- <- listen to this guyacrossthesea
- it's bs like this that turned me into a scriptmonkey. There are ways to do this with code, even with a tween engine.kpl
- by bs I meant the flash player render engine, not these instructions, which are good.kpl
- woodyBatts0
An issue I also saw was if you are using CS4 and classic tween make sure you are publishing Flash Player 9 or below.
- Really? Never experienced an issue w/ classic tweens and fp10.acrossthesea
- ********0
what now?