Jerky tweening jerk
Out of context: Reply #12
- Started
- Last post
- 14 Responses
- 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