hum it's difficult to help you like that, but maybe you must replace - 0 by some value, cause perhaps you are testing the tile where you are instead of the tile at the left of the player
I think you must add some debug trace (oslPrintf etc...) to check that your code do the right stuff
and the last thing, the value 1.3 do nothing because it is int type...
|