23.04.2012, 18:27
Loose indentation is a warning, not an error. Are there any more errors showing in the console? This code will still work regardless of the indentation, the compiler doesn't notice logic problems (i.e. if you used the wrong operator, etc.).
Also, are you positive 'hp' is defined as a float?
Also, are you positive 'hp' is defined as a float?