Limiting Actors Behaviors

crapscraps Member Posts: 353
edited November -1 in Working with GS (Mac)
How can I limit an actors/game behavior until a "outcome" is determined.

Like in a shooting game - how to have only one "shot" at a time.
and in game where the player has to make a choice - make a bet - so that no other bets or shots can be made until the sequence of events is over.

Comments

  • firemaplegamesfiremaplegames Member Posts: 3,211
    Make a global boolean game attribute called something like "busy". Set it initially to false.

    Wrap all of your Rules with a condition that only allows the Rule to execute when game.busy = false.

    Whenever you tap something that requires the user to wait, set game.busy to true.

    Set it back to false when the action is complete.
Sign In or Register to comment.