Multiplier

mikbiomikbio Member Posts: 54
edited December 2011 in Working with GS (Mac)
In my game you need to throw things in colored basket, when you get the right one you're awarded with 5 points if you get the wrong one you loose one of five lives. I would like to make a multiplier for example, if you get 5 items in the baskets without loosing a life i would like to multiply that score for two ore something similar. Have you got some ideas?

Comments

  • CloudsClouds Member Posts: 1,599
    edited December 2011
    Just set it up with some attributes. . . .

    a LIVES attribute (set up initially as 5)
    a GOALS attribute (set up initially as 0)

    Every time you lose a life change the 'LIVES' attribute to (LIVES = LIVES-1)
    Every time you get an item in the basket change the 'GOALS' attribute to (GOALS = GOALS+1)

    Then throw the following check in somewhere useful: If 'LIVES' = 5 and 'GOALS' = 5 then SCORE = SCORE*2

    . . . . or something like that
  • mikbiomikbio Member Posts: 54
    Thank you very much
Sign In or Register to comment.