GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Chaining events. Is this possible?

hillelchillelc Posts: 56Member
edited November 2011 in Working with GS (Mac)
is there a technique that can be used to trigger one event to happen when a previous one ends? (Other than using timers?)

Comments

  • POMPOM Posts: 2,599Member
    Yes , its quit simple actually, make a game attribute "boolean" - call it "event number 2"
    now , when event 1 is over , change "event number 2" to true ,

    then have a rule :
    When "event number 2" is TRUE -
    Do what you want for the second event .

    note that if you have more that 2 events , you can use "integer" attribute as a counter .
    so that when event number 1 is over ,
    change the integer "game.number of the event" to 2

    Then have a rule -
    When "game.number of the event" = 2
    Do what you want for the second event .
    And Change "game.number of the event" to 3

    And so on .

    Hope it helps .
    Roy.
  • hillelchillelc Posts: 56Member
    Thanks. Yes, but how do I determine when event 1 is over? that's really my question.
  • POMPOM Posts: 2,599Member
    Well thats depending on what happen on event 1..?!
    Is an attribute changes?
    Does an actor collide with another actor?
    Is it just time passes by?

    Post some info so I can help..
    Roy
  • hillelchillelc Posts: 56Member
    When an animation ends.
This discussion has been closed.