Move Actor Right then Left continuously

maybe I'm doing something wrong, but I have a variable set to false before it runs, it turns to true after it runs, and I figure it should continually loop the moving commands over and over? Here are some screenshots.

moveRight: http://i.imgur.com/szmygGf.png?1
moveLeft: http://i.imgur.com/nE6LaNj.png?1

Both of these rules are applied right on the actor. is there a way to have these loop somehow? I would greatly appreciate any help!

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    edited March 2015

    Constrain self.X to 170 *sin(self.time *300)+770

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    Socks method is great, but if you were interested in another way here is an option:

Sign In or Register to comment.