Wobbling actors

sl-imagessl-images Member Posts: 44
edited November -1 in Working with GS (Mac)
i have actors that spawn and then fall from the sky i would like them to wobble as they fall not rotate fully but rock between say 320 and 250 constantly any ideas how to do this i though about animating them but its quite a long task for such a small peice of the game plus it would take quite allot of memory ...

Comments

  • InLikeFlynnInLikeFlynn Member Posts: 171
    There's a 'rotate to angle' behavior. Did you try that? You could use timers or another variable to tell your actor to rotate the other way later.

    Another way you might be able to do it would be by interpolating self.rotation, but I've never tried that, so I'm not sure it would work.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    have a rule rule in the actor when self rotation =0 interpolate rotation to 90

    then have another rule when self rotation = 90 interpolate rotation to 0

    You can switch the starting rotation of the actor and those numbers in the rules to whatever angles you want, just make sure they match up like they do above

    cheers
Sign In or Register to comment.