Spawn Pause Question

Fal01Fal01 Member Posts: 460
edited February 2012 in Working with GS (Mac)
Hi all,

I have a spawner that spawns baddies across the bottom of the scene, but when I get to a certain score I want to spawn a Boss and while he is on
screen I need to pause the spawning of the baddies until the Boss is destroyed.

Any help would be appreciated.

Cheers.

It’s not a bug – it’s an undocumented feature

Comments

  • POMPOM Member Posts: 2,599
    edited February 2012
    Make a game attributes - boolean - call it "boss is on screen"
    Now , when you spawn your boss , also change "game.boss is on screen" TO true .

    Now in your baddies spawner .. wrap your spawn rule in a new rule that says :
    When "game.boss is on screen" IS false
    Spawn baddies.

    This way when "game.boss is on screen" is true , it will not spawn them ..

    Hope it helps you.
    Roy.
  • Fal01Fal01 Member Posts: 460
    Cheers Roy!

    It’s not a bug – it’s an undocumented feature

Sign In or Register to comment.