Having problems subtracting pts. from score.

game ongame on Sun Valley, California Member, PRO Posts: 79

Hey Guys,

I have a complex scoring system that adds all the points, at the end of the game. If I type "game.Top Floor + game.Bricks + game.Bomb + game.Bullet Score" in the "Expression Editor" it works great.

The only problem is I want to subtract the "Bullet Score" in the "Expression Editor"

exp: "game.Top Floor + game.Bricks + game.Bomb - game.Bullet Score"

If I use a "+" between "game.Bomb & game.Bullet Score" it will add the points to the final score. But when I use a "-" it won't subtract the "Bullet Score"points.

What am I doing wrong?

Thanks, David

Comments

  • game ongame on Sun Valley, California Member, PRO Posts: 79

    bump...

  • bjandthekatzbjandthekatz Orlando, FlMember Posts: 1,375

    Not a math genius, but try putting parenthesis around the additon, then subtract. This way you will get the full value and subtract from that.
    (game.Top Floor + game.Bricks + game.Bomb) - game.Bullet Score

  • game ongame on Sun Valley, California Member, PRO Posts: 79

    Thanks bjandthekatz, that worked! :)

Sign In or Register to comment.