sendy
Processing Plant

Posts: 21
|
Post by sendy on Feb 20, 2015 21:40:36 GMT
Hi, I'm trying to subtract 1 from the player's score every time they jump, and 100 every time they lose a life, to balance the positive scoring you get when you collect objects (plus 100). I think this will make the game a bit more dynamic and replayable but I'm not having much luck, because "score" seems to be handled specially and you can't say "score -1" - it confuses the parser because it seems to expect a positive number only.
Is there any way around this? Obviously, I'm checking that score is greater than zero before I try and subtract from it.
|
|
|
Post by lukebord1 on Mar 11, 2015 22:37:47 GMT
Hmm SCORE command expects only to be increased, it isn't a normal variable: while you say "ADD 1 TO A", the special score command has the different syntax "SCORE 1". At the moment, the only way to subtract a value from the score, should be to replace it with a normal variable - but this way, you cannot exceed 255!
|
|
sendy
Processing Plant

Posts: 21
|
Post by sendy on Mar 12, 2015 19:31:35 GMT
Thanks for clarifying lukebord1. I suppose I might be able to make it work if I use a variable.
Basically, I wanted objects collected to add a healthy amount to score, but jumping would take away one point, and dying would take away the same score as collecting an object. That would open up the game to be played strategically and produce a metagame beyond simply going around the map and collecting the objects to finish the game.
|
|