Difficulty Change, please help!

Hi
I am kinda new to this so I need help. I want to have two difficulties: easy & hard. As there are blocks spawning, if you change it to hard, the frequency increases. How do i do that?

Thanks

Comments

  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    edited May 2013
    You set up a game attribute that is tied to the difficulty select buttons. I would use a boolean attribute, lets call it "difficulty" for arguments sake. Easy=Off and Difficult=On

    When you press the Easy button, it changes the "difficulty" attribute to Off
    When you press the Difficult button, it changes the "difficulty" attribute to On

    In the block spawner, have 2 different sets of rules, In the Easy rule setting have it say - When Attribute "difficulty" = off - Then have your spawning rate behaviors at whatever is going to be for normal.

    In the difficult rule, have it say - When Attribute "difficulty" = on - Then have your spawning rate behaviors, but make it spawn more blocks, or spawn at a faster rate.

  • alexconsincalexconsinc Member Posts: 54
    Thanks mate! Works well!
Sign In or Register to comment.