tweening vs AS 2
- Started
- Last post
- 10 Responses
- mitee_0
hosted.zeh.com.br/mctween/index...
PDF put together my me.
- jackfoley0
link doesnt work
- joyride0
http://hosted.zeh.com.br/mctween…
duh... spaced don't work on the internets
- ninjasavant0
Don't know much about AS but what is your frame rate set to? Increasing your frame rate should improve the smooveness of the motion but also makes it take longer to load.
- alloyd0
You can use either or but it depends on how you do it.
To make it smoother:
- Scale the image to 100.2%, that small extra percentage will stop the image from shifting when it starts and when it ends it's tween.- Switch Flash's render quality: _root._quality = "best";
- You can use a manual tween or use AS to pan the image down. The key factor is making sure that every frame the image moves, that the image moves on an even Y position integer, not a floating point number (ie. _y = 68 and not _y = 68.3).
So, here would be a quick snippet of code to move the image down:
MovieClip.prototype.moveImgDown...
{
this._y=Math.round(this._y);
if(this._y Move an image of the sweeet chick down.banging_chick_img.moveImgDown(17...
Obviously, the number for the ending Y position can be done more dynamically but it all depends on what suits your needs and how complicated you need to get. Hope that helps.
- alloyd0
Whoops, part of the code got cut off:
Here it is again:
MovieClip.prototype.moveImgDown... this._y=Math.round(this._y); if(this._y
- alloyd0
Whoops, can't add that code in here for some reason.
- kyl30
nt don't like code
- alloyd0
Oh yeah, forgot to mention, for the amount of pixels you increment the Y position, that increment number also must be divisible by your frame rate. This is mainly for slow, long tweens like the one you have. If it's not, then there will be one or two frames that will 'stutter' or shift. For something that ur trying to do, I'd just move it one pixel at a time.
- hotroddy0
Thanks for the link and info..
Alloyd,
Great tweening tips. I would love to see the full code you posted... I'll send you her signed calendar if I get this bitch to work through actionscript...