Turn off groups in-game?

AdorableZombieAdorableZombie Member Posts: 2
edited November -1 in Working with GS (Mac)
Hi, everyone.

Does anyone know if it's possible to turn off an entire group or groups of behaviors when certain conditions are met?

For example, let's say you take all of an actor's rules that control its movement and put them in a group called "Character Movement." Now, let's say you want to temporarily disable the player's movement for whatever reason (cutscene, score tally, etc). I figure an easy way to go about it would be to simply turn off the Character Movement group and turn it back on after the event has passed. Is there a way to do this?

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    You would use a rule instead of a group and have a boolean attribute.

    When game.attribute is true
    --Do all rules enclosed below.

    Then you can turn the attribute to false and non will work.
  • AdorableZombieAdorableZombie Member Posts: 2
    @ten

    Gotcha. That makes sense now.

    I've prototyping on Construct 2 by Scirra for the past couple of weeks, so getting used to Gamesalad has been a bit of a struggle.
Sign In or Register to comment.