Hi.
I have a strange bug
local offY = - (drawY % self.data.tileheight)
print("-+-", offY, drawY, self.data.tileheight)
And the output is
21:31:00.305 -+- -79.999999999997 3040 80
That mean self.data.tileheight is a float value and probably drawY is a float value too!
Is it possible to force a lua variable to be an integer ?
Of course, I found a solution to this specific problem. I’m asking for next time !