A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Tween Class and Guide

  1. #1
    Senior Member
    Join Date
    Oct 2000
    Posts
    220

    Tween Class and Guide

    Is it possible to move something using the tween class with a motion guide?

    How would I do this?

  2. #2
    Senior Member
    Join Date
    Oct 2000
    Posts
    220
    or if not, at least tween the x and y coordinates, but have it animate along a slight curve instead of a perfeclt straight line.

  3. #3
    http://pat.theorigin.net cresquin's Avatar
    Join Date
    Jun 2003
    Location
    Los Angeles, CA
    Posts
    685
    the short answer is no, you can't tween class along a guide or a curve. You'll need to write the math for the geometry you are looking for, and trust me, it's ore complex it sounds.

  4. #4
    Senior Member
    Join Date
    Oct 2000
    Posts
    220
    So in this instance, I'm actually probably better off just motion tweening?

    Or maybe a sequence of shorter, tween class animations to fake the curve?

  5. #5
    Bearded (M|G)od MyFriendIsATaco's Avatar
    Join Date
    Dec 2002
    Location
    Awesomeville.
    Posts
    3,045
    You can fake a slight curve using the Tween class with different easing equasions for each axis. For example, the x axis uses None.easeNone, and the y axis uses, Strong.easeOut. You'll get a curve. Play with that stuff, you can get interesting results.

  6. #6

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