Hi Scirra friends,
I have a problem with variables.
I have a variable named "PistolaDaño". Its initial value is 1.2
So, when you press a button (called "Mejorar"), the variable has too add 0.3 to its value.
It means that if press one time that button, the variable will be 1.5.
If i press it twice will be 1.8.
Then 2.1
Etc.
The first 2 or 3 times i do it, everything works well..
BUT,
After some clics its value chage to something like: 2.6999999997 (Instead of 2.7).
(I can see that at the "Bug" test).
You can see it at the pictures:
https://mega.nz/#!owcFyCrQ!eTTeEULLIdf4 ... 7okyORnj6U
https://mega.nz/#!V8lSlRBB!w-Ao6mnpvcZ5 ... ASwXXaj9uw
https://mega.nz/#!t18SnBhR!1Ixbpx9twG7E ... T73DX7vX8g
https://mega.nz/#!wwcBzCAA!ND5hMRmW7UC0 ... KJ82d7L_X8
Thaks all !!!!!!!!