Actor moving up and down

GLJ27GLJ27 Member Posts: 27
edited November -1 in Working with GS (Mac)
Im making a carnival duck shoot game and in the game I have a rock and a groundhog. I want the groundhog to move up and appear on the rock and stay there for a few seconds and then move back down. Does anybody know how to do this?

Comments

  • PhoticsPhotics Member Posts: 4,172
    GLJ27 said:
    Im making a carnival duck shoot game and in the game I have a rock and a groundhog. I want the groundhog to move up and appear on the rock and stay there for a few seconds and then move back down. Does anybody know how to do this?

    Well... there are a bunch of ways...

    Constrain the actor's Y position to SIN of the actor's time * a multiplier. It will move up and down.

    Another way is a series of timers and move to behaviors.

    Every 6 seconds...
    -- move to 200 (Change the speed so it gets there in two second)
    -- after 3 seconds move to 100

    I'm not sure exactly what will work for your game, but those are two ways to move an actor up and down.
  • GLJ27GLJ27 Member Posts: 27
    Yeah those didnt work
  • hman360hman360 Member Posts: 590
    I can try to do it for you. Email me at redsox360blog@gmail.com
Sign In or Register to comment.