guide me please, about changing scenes

sky_ssrsky_ssr Member Posts: 58
edited November -1 in Working with GS (Mac)
I want to make a game when all of the actors are destroyed, change to next scene. Suggestions please.

Thanks

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    The easiest way is ou would want to count how many actors are on the screen that have to be destroyed. Say you have 20 that when all 20 are destroyed you want to change scene

    You would make a attribute called enemy count, and set it to 20 or however any actors you have.

    In each actor in the rule you ahve to destroy it, have it so when its destroyed it also changes attribute enemy count to enemy count -1. Then have a rule when enemy count = 0 change scene

    cheers
  • sky_ssrsky_ssr Member Posts: 58
    Thanks for replying, but which type of attribute should be created
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    interger
  • sky_ssrsky_ssr Member Posts: 58
    it doesnt work, when 1 actor is destroyed, the scene change, further suggestion please

    Thanks
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    are you setting the attribute at the number of actors on scene, and then changing enemy count to enemycount -1
  • sky_ssrsky_ssr Member Posts: 58
    it works now!!!!

    Cheers
Sign In or Register to comment.