Gaining bullets

mikbiomikbio Member Posts: 54
edited December 2011 in Working with GS (Mac)
Hello,
In my game i need to make a rule that gives the player 1 rocket for every 15 score points. I thought that the rule to use was
When atribute game.score = game.score+15 then game.bullet=game.bullet+1 but unfortunately this doesn't work, can someone help me?

Comments

  • FallacyStudiosFallacyStudios Member Posts: 970
    edited December 2011
    You may have to do it individually. I'm not sure if a modules would work on something that high or not, but you can give a % a try. Not sure why you want to do it every 15 game points. Wouldn't it be easier to make it so you find ammo along the way. Then all they need to do is come in contact with it, it destroys the ammo and increases your actors ammo.

    You would use it like this if it works. game.pointtracker = (game.score+1)%15 then when game.pointtracker is at 0 give a rocket. You would have that everytime a point is gained.
Sign In or Register to comment.