Basic question?

Rob2Rob2 Member Posts: 2,402
edited November -1 in Working with GS (Mac)
Seems like a basic question but how do you temporarily turn off a rule without deleting it.

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    You can't, officially...

    I do a 'cut' - cmd and x - this means the rule's removed, and I can test, and if I want it back, I just paste back into place.

    Hardly ideal though...

    QS

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • StormyStudioStormyStudio United KingdomMember Posts: 3,989
    yeah tough one, you can add a rule which says if game.attribute "test" is 1 make it active. If it is false it won't work.

    Ok for testing but no ideal.
  • Rob2Rob2 Member Posts: 2,402
    I'm amazed... it has to be the most basic part of any development process, makes debugging a nightmare
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Create a game boolean attribute and call it ThisRuleIsDisabled and set it to false. then Wrap any rule you want disabled in a rule that says when game.ThisRuleIsDisabled. Because it is initially set to false it will never be true and the game engine will ignore everything that is within the rule.
  • Rob2Rob2 Member Posts: 2,402
    Yeah that is the simplest way but it goes against the most basic principles of good coding.
  • Rob2Rob2 Member Posts: 2,402
    And I am a grumpy old bast**d, works ok once you folded all the rules into manageable little bars
Sign In or Register to comment.