Button To Number

GendudeGendude Member Posts: 15
edited November -1 in Working with GS (Mac)
I want to create a button that's link to a number of item killed

Example

Easy - kill 25 enemies

Medium - Kill 50 enemies

Hard - kill 100 enemies

I have a rule - Attribute - gamescore = 25 - change scene - level 2

How can I get the gamescore to auto fill in a number depending on difficulty selected?

Thanks
Gendude

Comments

  • JeffreyShimaneJeffreyShimane Member Posts: 372
    Create a game attribute called enemies.

    In the Easy button actor, if touch is pressed, change enemies attribute to 25. In the Medium button actor, if touch is pressed, change enemies attribute to 50. In the Hard button actor, if touch is pressed, change enemies attribute to 100.

    Instead of having a rule like when gamescore attribute = 25, change scene to level 2, change it to when gamescore attribute equals enemies attribute, change scene to level 2. That way, depending on which difficulty button the player pressed, the number of enemies needed to go to the next level will change.

    - Jeff
  • GendudeGendude Member Posts: 15
    Thanks Jeff - Big help

    Gendude
Sign In or Register to comment.