How can I loop an actor?

shaihem2014shaihem2014 Member Posts: 26
edited July 2012 in Working with GS (Mac)
Hello guys,

I have an actor which moves to the right of my screen. I would love to the same actor to re-appear from the left once it has disappeared from the right. Is it possible?

Best,
Adil

Best Answers

  • developer6810developer6810 Posts: 139
    Accepted Answer
    wrap x
  • BarrytheBraveBarrytheBrave Posts: 134
    edited July 2012 Accepted Answer
    Wrap x will cause anything to wrap around to the other side when it leaves the scene, so if that's not what you're after then leave wrap unchecked, and add a rule that when self.position x = (a position off the right of the screen) then set self.position x = (a position off the left of the screen).

Answers

Sign In or Register to comment.