When loading the game the User starts with 10 credits and for every time they run the game it costs 2 credits
This is my code for this below
Dim intCredits As Integer = 10
Dim intGamesPlayed As Integer = 0
intGamesPlayed += 1
intCredits = intCredits - 2
it has no errors but it doesn't take away the credits each time the game is played besides the first time
so when i run the game it will go to 8 credits, and it will stay on 8 credits even if i run the game again
can anyone see a problem with my code above?
Thanks

New Topic/Question
Reply



MultiQuote





|