//Timer - Please note that this is supposed to occur every 3 minutes. i changed the time for debugging means |
Problem description:
I get a few problems with this code.
1. It stops the timer
2. It keeps showing up Oxygen levels are dropping. 75% Oxygen remain and it doesn't decrease the oxygen levels.
Please note i've just started doing a simpler game than an action game to help me learn.
[EDIT]
Oops forgot to say what the code supposed to do.
The timer proc changes the hour every 3 minutes (i know its 1.8 second its for debugging) and there's supposed to be a 20% of an Oxygen leak happening. If that happens then it decreases the ship oxygen every 30 seconds and shows the percentage at the right percentage.

You may be confused by the fact that you are creating a new Ship object every time it decides there should be a leak.