automatic move

solitaireesolitairee Member Posts: 73
edited November -1 in Working with GS (Mac)
hey guys pls how to make actor move few pixels left and than right?

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Just use the self.position attribute to trigger the moves left and right.

    self.position.x = 10
    -- move right

    self.position.x = 15
    --move left
Sign In or Register to comment.