Help with attributes

thedogthedog Member Posts: 5
edited August 2012 in Working with GS (Mac)
Okay I need to make a new scene appear when 10 of 2 different items are destroyed

Comments

  • Fabri DamazioFabri Damazio Member Posts: 97
    Make a global atrribute to count the number os destroyed actors.

    Every time when one is destroyed, the counter increase by 1.
    When the counter is equal 2, change scene.
  • thedogthedog Member Posts: 5
    Make a global atrribute to count the number os destroyed actors.

    Every time when one is destroyed, the counter increase by 1.
    When the counter is equal 2, change scene.
    Thanks I kept trying to make it count down from the number of things there were.
  • thedogthedog Member Posts: 5
    ok that didnt work can you help this is what it says on one of the items it says when actor collides with ball destroy actor and change attribute: game.Brick to Game.Brick+1 its the same thing with other item. Then on an item to the side of the scene it says on it. When game.Brick is = to 13 (how many are in the scene) go to level 2
  • thedogthedog Member Posts: 5
    It probaly wasnt me im new so I probally read it wrong
  • Fabri DamazioFabri Damazio Member Posts: 97
    Imagine that:

    actor item 1
    actor item 2

    attribute counter
    --------------------------------

    When ball colide with item 1:

    counter +1
    destroy item 1
    -----------------------------------
    When ball collide with item 2:

    counter +1
    destroy item 2
    ----------------------------------
    When counter = 10
    Change Scene
Sign In or Register to comment.