How do you make arc movements through code?

Goodnight GamesGoodnight Games NYCMember, PRO Posts: 184
edited October 2012 in Working with GS (Mac)
This is more of a quick question: What math function would I use to make an actor move in an arc?


I couldn't find the wave movement tutorial it's 404'd but I'm not even sure that's what I needed. Thanks!

Answers

  • MarkOnTheIronMarkOnTheIron Member Posts: 1,447
    Normally you would work by constraining the X and Y position to an attribute modified bi the cos an sin functions.

    But if you're looking for a simpler method (even though it doesn't always produce the required results) you can try to interpolate the positions and for the Y one use the Ease Out option in the interpolate behaviour for when the actor is going up and Ease In for when is going down.
Sign In or Register to comment.