![]() |
Scores and subtracting from total score
Question I have a Int ScoreBlue;
As smething is destroyed the score increase. ScoreBlue = ScoreBlue + 10; Is there a way to subtact from the Total in the int ScoreBlue; ? Which of these would be best or something else? ScoreBlue = ScoreBlue - 10; or ScoreBlue -= 10; or ScoreBlue =( 10-ScoreBlue ) something else? |
There is no problem to subtract a int.
you can use: ScoreBlue = ScoreBlue - 10; or ScoreBlue -= 10; |
Excellent :)
I am already using ScoreBlue = ScoreBlue - 10; But I had a panic attack thinking it may not actually subtract. All is well in coding land :) FYI the fruits of your's and my laybour is now uploaded on the ATAG server 2 and 1 i think RedvBlue_1.0 mission. Your assistance has been the key. Thanks! |
All times are GMT. The time now is 08:49 AM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.