2X Score?

CabacoCabaco Member Posts: 414
edited November -1 in Working with GS (Mac)
How can I, by clicking an actor, make the score times 2? i.e. I am making a bat hunting game and one of the powerups is that once its clicked, the score that you get each time you kill a bat multiplies by two.
Can you also tell me if it is possible to make actors spawn faster after a button is clicked?
Thanks!

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Have a attribute called score points, have it set to one. For the usual rule you have for getting a score when you kill a bat, i guess your changing your score attribute to score attribute +1. instead of having +1 have +score points (the attribute you just made)

    Then have a rule in the power up when touch is pressed change score points to 2.

    Since score points is set to 1 at first when you kill a bat normally it will add one, but then when you get the power up in changes it to 2 thus adding 2 instead of 1.
  • CabacoCabaco Member Posts: 414
    JohnPapiomitis said:
    Have a attribute called score points, have it set to one. For the usual rule you have for getting a score when you kill a bat, i guess your changing your score attribute to score attribute +1. instead of having +1 have +score points (the attribute you just made)

    Then have a rule in the power up when touch is pressed change score points to 2.

    Since score points is set to 1 at first when you kill a bat normally it will add one, but then when you get the power up in changes it to 2 thus adding 2 instead of 1.

    JohnPapiomitis said:
    Have a attribute called score points, have it set to one. For the usual rule you have for getting a score when you kill a bat, i guess your changing your score attribute to score attribute +1. instead of having +1 have +score points (the attribute you just made)

    Then have a rule in the power up when touch is pressed change score points to 2.

    Since score points is set to 1 at first when you kill a bat normally it will add one, but then when you get the power up in changes it to 2 thus adding 2 instead of 1.

    I make the attribute on the scene or in the actor? And what type of attribute is it? Integer, Real?
    I am making 100 points when they kill a bat how do I do now?
    Thanks!
  • CabacoCabaco Member Posts: 414
    Please Help!
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Make the attribute a game attribute, and interger. Since its 100 points per kill set it to 100. Then when you click the power up change the attribute to 200, so it will add 200
Sign In or Register to comment.