rotate side to side

tim13211tim13211 Member Posts: 87
edited November -1 in Working with GS (Mac)
how can i make an actor rotate from side to side like this:

image

Comments

  • mangaroomangaroo Member Posts: 419
    if actor at angle M interprolate to angle N
    otherwise interprolate to angle M

    he'll need to start at one of those angles...or be rotated to it for it to work
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    the easiest would be to just use three images and animate it. other wise it will take some math to make it rotate from the end like that.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    open gamesalad ,hit the new tab ,search waving ,and double click the demo to open it. That will help you alot

    cheers
  • calvin9403calvin9403 Member Posts: 3,186
    tenrdrmer said:
    the easiest would be to just use three images and animate it. other wise it will take some math to make it rotate from the end like that.

    I do that with my game to
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    you can get the math from the example rotations demo. you should be able to pick that apart enough to get the part you need.
  • tim13211tim13211 Member Posts: 87
    i actually dont need it to rotate at the bottom, the center will due. Im trying what mangaroo said, i just need to get the angle right. its being a bit of a problem
  • tim13211tim13211 Member Posts: 87
    i got it!! I tried "45 to 315" but it was rotating the wrong way. but it worked when i did "45 to -45"
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    tim13211 said:
    i actually dont need it to rotate at the bottom, the center will due. Im trying what mangaroo said, i just need to get the angle right. its being a bit of a problem

    You will most likely need a rule for each side of the rotating not just an otherwise. The otherwise with no rule will mean the interpolate will keep setting back as soon as it tries to move.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    look at the demo i told you to search. It has the math u need and lets u set a wave span attribute for how much it rocks back and forth, and a speed attribute
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    JohnPapiomitis said:
    look at the demo i told you to search. It has the math u need and lets u set a wave span attribute for how much it rocks back and forth, and a speed attribute

    Thats a cool demo john.
  • tim13211tim13211 Member Posts: 87
    tim13211 said:
    i got it!! I tried "45 to 315" but it was rotating the wrong way. but it worked when i did "45 to -45"

    I got it guys ;)
    tenrdrmer said:
    You will most likely need a rule for each side of the rotating not just an otherwise. The otherwise with no rule will mean the interpolate will keep setting back as soon as it tries to move.

    yup, thats exactly what I did.

    Thanks guys!!!
Sign In or Register to comment.