Move Actor Right then Left continuously
RGXGames
Member Posts: 1
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
Constrain self.X to 170 *sin(self.time *300)+770
Socks method is great, but if you were interested in another way here is an option:
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page