tweening vs AS 2

Out of context: Reply #5

  • Started
  • Last post
  • 10 Responses
  • 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.

View thread