Random "hovering" Movement question

stanimationstanimation Member Posts: 406
edited November -1 in Working with GS (Mac)
Hey all, I'm trying to make an actor move in kind of a "hovering" fashion using an expression instead of using collisions. Any suggestions? Thanks!

Comments

  • synthesissynthesis Member Posts: 1,693
    Try interpolations.

    Have it interpolate to "centerpoint" minus shift left. Then when shift left position is achieved interpolate to centerpoint plus shift right amount...then loop.
  • stanimationstanimation Member Posts: 406
    Hhmm. Not sure I know what you mean? By interpolate you mean move? I tried constraining the image to a center point then attaching a timer that randomly changes position. Kind of jerking. Looking for a nice smooth "noise" type of function. Thanks!
  • synthesissynthesis Member Posts: 1,693
    Interpolation = Transition.

    You can use it to smoothly change anything...positions, size, color, etc. Plus it has easing. You can use my method above to create a left to right to left oscillation movement...or whatever.

    Its a tweening behavior that has its own built in timer. i recommend you play around with it if you haven't used it before.
  • stanimationstanimation Member Posts: 406
    Cool I didn't even know about that behavior. I'll give it a go! Thanks Synthesis!
Sign In or Register to comment.