Turning off code for certain modes?

I was just wondering if I am doing this right. I am going to have various game modes that the user can select. Different things will happen in each mode, that shouldnt happen in any of the others. What is the best way to complete this?

I was thinking of making a boolean game lvl attribute for each mode, starting at false. Then having a change attribute to true for the attributes when the user selects a mode. Am I heading down the right path?

Comments

  • RabidParrotRabidParrot Formally RabidParrot. Member Posts: 956

    @GamingtilDawn

    That should work. Or you could make an integer attribute so when level = 1 it should only allow level 1 rules.

    Or if level = 2 only allow level 2 rules. So on, so forth.

  • GamingtilDawnGamingtilDawn Member Posts: 104

    Thanks @RabidParrot, I will try both ways.

Sign In or Register to comment.