A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: adding actionscript to a tween to make a Motion SMOOTH without using ease in propert.

  1. #1
    Senior Member
    Join Date
    Aug 2004
    Posts
    102

    adding actionscript to a tween to make a Motion SMOOTH without using ease in propert.

    I want to know how people make there tweens soooo smooth
    i play around with the ease in the properties panel.. and it helps but the effect is not as seemless as other effects i have seen.

    i have come across a script that will make a smooth tween with only actionscript...but my negitive comments against that is...i like to see the actual tween and put it where i want. I don't want to mess with code and the x and y axises to put it where i want by trail and error putting in different types of x or y axises to put the shape that is being tweened in the correct spot. if i could only add some script to the tween i already have made it would make the process ALLOT BETTER ?


    fellow flash kiters, is there an answer ?

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    well... there isn't much more to do than 'play with the frame based ease', as you said, with a motion tween if frame based.
    I understand your point though. When a .fla's motions are scripted, it's hard to 'see' the graphic display of elements when authoring. What i usually do is take a snapshot of the swf when the scripted tweens finish, and place it in a bottom 'guide' layer.
    Now sometimes frame based tweens are good too You don't always need to 'script everything'!

    gparis

  3. #3
    Senior Member
    Join Date
    Aug 2004
    Posts
    102
    hmm... somebody must know a way to add some type of AS to a tween...
    to make a smooth transition from begining frame to the final ending frame of the tween.

    Can you other flash kitters place the code you use to make smooth transitions just with code ? Im familar with this to a point...it has to do with minipulating the x and y axises of your object symbol.

    ?????????????????????????????????????????????????? ??????????????//?

    basically accomplishing this question would allow knowledge of the simplest way to add the impressive effect of smooth transitions.


    - to understand how to do it , you must understand it in its orginal form to then change it with the knowledge you acquire.

    Thanks

  4. #4
    Senior Member
    Join Date
    Aug 2004
    Posts
    102
    hmm no answers ?

  5. #5
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    here's a good tutorial on easing:

    http://www.bit-101.com/tutorials/easing.html

    gparis

  6. #6
    Inspector General
    Join Date
    May 2001
    Posts
    493
    i know your dilema. my movies have gone from 30 layer scenes with mega long tweens to single frame scripted thingys. gets messy when you are programatically moving multiple things around in succession.

    if you want to stick with frame tweens, try cranking your fps up to 60.

  7. #7
    Senior Member
    Join Date
    May 2001
    Posts
    121
    sounds interesting meglomor. do you have an interesting an example you may like to share?

  8. #8
    Senior Member
    Join Date
    Aug 2004
    Posts
    102
    hmm... using the same ease tool that flash gives you and turning up the fps...to create a similar effect.

    I am wondering..possibley is this how you get a smooth transition only using action script ? this just might be a graphical interfaced way to approch this ? just by changing the fps ?

    i am aware when scripting a tween...the fps is usally high and could possibley make a really smooth transition including the fact that the ease would be on 100% .

    Can anyone justify this method. And say that they used it ? or have and example site on the net they can show ?

    we migh have come to the bottom of this and figured out , what is being scripted is just a possible minipulation of this you can already change WITHOUT CODEING !!!!!!!!!

    ..yet we move towards more answers, anyone feel free to reply ...

  9. #9
    Senior Member
    Join Date
    Feb 2001
    Location
    On the fifth floor.
    Posts
    1,202
    Take a look at the example
    Attached Files Attached Files

  10. #10
    Inspector General
    Join Date
    May 2001
    Posts
    493
    here's a quick example illustrating the effect of hight frame rate on simple frame based tweens with flash's built in easing:

    80fps:
    http://www.doyouhaveapen.com/posting...een_80fps.html
    24fps:
    http://www.doyouhaveapen.com/posting...een_24fps.html


    frame tweens work well with simple objects over short distances.

    for more elegant tweens check out sergwiz's example (try modifying the FPS in that example too) check out:
    flash's built in tween class:
    http://www.actionscript.org/tutorial...ed/index.shtml
    penner tweens:
    http://www.robertpenner.com/easing/easing_demo.html
    http://www.fluid.com/experiments/timecode/mx_time.html

    bottomline you have much more flexibility with programmed tweens, but a nice FPS and appropriate frame tween can achieve desireable results. its just a matter of finding what suits your situation best.

    check out my coinblast game here:
    http://www.doyouhaveapen.com/junkyart/coinblast.html
    when you hit the "play now" button the game interface is revealed via frame based tweens. when you click on the coins, the movement is all handled programatically as frame tweens wouldn't be able to deal with the dynamic destination positions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center