A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: equi distant movement along a spline / curve

  1. #1
    FK founder & general loiterer Flashkit's Avatar
    Join Date
    Feb 2000
    Location
    Sydney
    Posts
    1,149

    equi distant movement along a spline / curve

    Anyone had any success with movie an object at a constant rate along a spline - Ive tried using cubic bexier formulas (based on the http://www.reflektions.com/miniml/ stuff) but it always slows down on the corners, I want to move an object along a scripted path, but at a velocity decoded by me... for a lawn bowling game
    Regards Mark Fennell - Flash Kit Founder, general loiterer
    -------------------------------
    I Hate Zombies - iPhone Game | markfennell.com

  2. #2
    Developer
    Join Date
    Apr 2007
    Location
    UK
    Posts
    324
    !!! The legend that is FlashKit needing Flash help?

  3. #3
    A very senior man mrpauly99's Avatar
    Join Date
    Feb 2002
    Location
    Cool Britania
    Posts
    429

  4. #4
    Please, Call Me Bob trogdor458's Avatar
    Join Date
    Aug 2006
    Location
    Pensacola, FL
    Posts
    915
    does it have to be in actionscript? motion guides seem like they'd work just fine

    i can't test out an actionscript version for curves, had to do a pc recovery recently, now I dont have flash anymore...or an administrative account on this computer (no installation allowed)

  5. #5
    Script kiddie VENGEANCE MX's Avatar
    Join Date
    Jun 2004
    Location
    England
    Posts
    2,590
    Quote Originally Posted by Cortana
    !!! The legend that is FlashKit needing Flash help?
    He's asking for maths help, not Flash help.
    http://www.birchlabs.co.uk/
    You know you want to.

  6. #6
    FK founder & general loiterer Flashkit's Avatar
    Join Date
    Feb 2000
    Location
    Sydney
    Posts
    1,149
    I need lots of flash help as well and I need to learn to type better and check my spelling!
    Regards Mark Fennell - Flash Kit Founder, general loiterer
    -------------------------------
    I Hate Zombies - iPhone Game | markfennell.com

  7. #7
    Qwaizang:syntax_entity_ Q__Hybrid's Avatar
    Join Date
    Aug 2005
    Posts
    270
    I'm a bit vexed by the change in speed along the curve. This should not be happening.

    Didn't have time to look at the source of your formulas, but just to make sure, try googling "VB, Bezier, K.O. Thaha Hussein" and use his math. The speed along the curve should remain constant as long as the parameter of the curve remains constant.

    Keep in mind that Flash does not do well at displaying Bezier curves unless you break them up into nine points that are drawn in four curveTo segments. If you're dealing with curvilinear paths that have more than four points and are more complex than Bezier curves, these topics are beyond my understanding at this point.

    +Q__
    Qwai•zang \kwî-'zan\ n [origin unknown] 1 : abstract designer, esp. of complex real-time experiments, c. 21st century

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