Recycle Actors

wmgeichwmgeich Member, PRO Posts: 28
edited November -1 in Working with GS (Mac)
How do I recycle 5 different actors into scene at random times and at random locations?

The video only shows one actor used repeatedly.

I've tried having each actor off scene and duplicating Darren's approach but it doesn't want to work.

Help!

Comments

  • rlehmrlehm Member Posts: 320
    Have actor offscreen. Timer, after x second, change attribute self.position.x = random 20,300, change att self.position.y to 20,300

    Then, on actor death, change attribute, self.position.x to -40
    Change attribute, game.offscreen to 1

    If attribute self.offscreen = 1

    Edit. I used game and self. Should all read self.
    timer after x soconds

    Repeat the first set of rules above
    Change attribute self.offscreen to 0

    Make sure to create the self attribute.
  • wmgeichwmgeich Member, PRO Posts: 28
    Awesome! Thanks so much!

    I'm hoping this eliminates both my spawning and timing issue at the same time!

    Bill
Sign In or Register to comment.