How can i set a rule to make a bonus icon appear at a certain time?

reginald.bernardinreginald.bernardin Member Posts: 346
edited May 2012 in Working with GS (Mac)
I want to make a rule or sort that when for example you make score like 2000 points or whatever then an bonus icon will appear at the main screen. Kind of like when finish a certain level then a bonus round appears as an achievement. STEPS??

Answers

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    When game.score is greater than or equal to 2000
    --change attribute game.showbonus to true

    Then make in the icon on the main screen
    When game.showbonus is true
    --change self.color.alpha to 1
    Otherwise
    --change self.color.alpha.0

    Also make and rules for the button have a condition that self.color.alpha = 1 that way it doesn't work when its invisible.
  • reginald.bernardinreginald.bernardin Member Posts: 346
    all those rules go inside the bonus icon?
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    This:

    When game.score is greater than or equal to 2000
    --change attribute game.showbonus to true

    Would go in your controlling actor, or as TSB calls it: Round Rules.

    This:
    Then make in the icon on the main screen
    When game.showbonus is true
    --change self.color.alpha to 1
    Otherwise
    --change self.color.alpha.0

    Would go in your icon on the main screen, as described.
  • reginald.bernardinreginald.bernardin Member Posts: 346
    Do i make a real attribute or boolean?
  • reginald.bernardinreginald.bernardin Member Posts: 346
    The rule for equal 2000 is true where do i put that rule in the icon as well? is there a video for this?
  • reginald.bernardinreginald.bernardin Member Posts: 346
    is there?
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Yes a real attribute or integer
  • reginald.bernardinreginald.bernardin Member Posts: 346
    oh ok..i made it but the part when you say: when show bonus is equal to true..it does not give me an option for true.
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Oh haha - I thought you were talking about your score. Wow, totally my fault. Yes, create a boolean. Sorry
  • reginald.bernardinreginald.bernardin Member Posts: 346
    oh Soooo pretty much it's this, i put these rules into the bonus stage icon:

    Rule 1:
    When game.score is greater or equal to 2000 change show bonus (boon lean) to true

    Rule 2:
    when game.showbonus is true: change self.alpha to 1 otherwise change to 0

    Rule3:
    not sure of this one

    make self.alpha to 1....But what will the rule look like..:/

  • reginald.bernardinreginald.bernardin Member Posts: 346
    Hey braydon i did the rules and my icon disappears..But when i score 2000 or above it does not appear.
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    edited May 2012
    So you want an icon to appear when the score = or > 2000?

    I'm sending you a PM with my email. I've made a template and I'll send it to you. Email me first so I have your email.
  • reginald.bernardinreginald.bernardin Member Posts: 346
    Yes i do..like when u score 2000 or more a bonus stage will appear..
  • reginald.bernardinreginald.bernardin Member Posts: 346
    thanks braydon
Sign In or Register to comment.