playMaker

Author Topic: Move Gameobject left to right continuously  (Read 517 times)

PlaymakerNovice

  • Playmaker Newbie
  • *
  • Posts: 18
    • View Profile
Move Gameobject left to right continuously
« on: October 28, 2015, 06:26:50 AM »
I have a gameobject that I want moving left until it touches the edge of the screen and then right until it touches the edge of the screen and repeat. I've tried doing this by using translate to make it move and then having a game object on each side of the screen with a trigger and when it is touched by the moving game object the moving game object will move the other way, but it doesn't work. The game object just goes through it or is really choppy, or if another object touches is that doesn't have the tag that makes it move, make the moving object move anyway.