how do i make an actor move side to side

icanmakeicanmake Member Posts: 466
edited November -1 in Working with GS (Mac)
hi i am new to gamesalad and i have been working on a platform game. i have some wave actors in my game that i would like to move side to side. How can i do this. Please help

Comments

  • DreamLabDreamLab Member Posts: 2,127
    Ok

    so
    go into the instance of the actor(click on the actor IN the scene, not the actors folder)

    make 1 rule

    when self position x = (whatever the position is at the time(look in the attributes of the actor to find it))

    interpolate self position x to wherever you want it to go on the x axis

    OTHER WISE(check the otherwise drop down arrow)

    (drag another rule in)

    when self.postion x = (whatever you just changed it to)

    interpolate to (back to the original x position)

    and the duration is how fast

    small duration is quick
    large is slow

    hope that helps
  • floydianspiralfloydianspiral Member, PRO Posts: 308
    I'd take a simpler route: place the actor you want to bounce back in forth between two invisible walls, if the object hits a wall change it's velocity to -velocity
  • icanmakeicanmake Member Posts: 466
    i took the easiest way and made an animation for it. works great. thanks for all your help though
Sign In or Register to comment.