Score Only Incremented Once

BlitzMax Forums/BlitzMax Programming/Score Only Incremented Once

Blitzogger(Posted 2012) [#1]
I am having a bit of trouble. I wrote an object for handling the players score. However for some reason it only runs once despite the condition being true more then once. The latest version of my source code can be accessed [url=http://dl.dropbox.com/u/102403704/Blitzogger.zip]here[/url]. Any assistance would be greatly appreciated.

Sincerely,

Blitzogger


BladeRunner(Posted 2012) [#2]
in score.bmx you have an error in method increment()
Instead of score =+1 (which sets the score to +1, compiler reads this: score = +1) you need to write score :+1. That is all.
If you give away source code it is unnecessary to include the .bak files, they are just backups.


Blitzogger(Posted 2012) [#3]
That worked thanks!

Sincerely,

Blitzogger