i need help with my tile system i attached my file and the outline of the tiles whenever i move looks like green or black when i move around
pls help
Need help for tile map system
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Need help for tile map system
- Attachments
-
- game.zip
- heres the source
- (4.85 MiB) Downloaded 1464 times
Re: Need help for tile map system
It seems to be some subpixel/rounding problem.
I added rounding here and that fixed it:
Also those 31.9999999999999 can just be 32.
I added rounding here and that fixed it:
Code: Select all
function love.update(dt)
camera:lookAt(math.floor(player.x+0.5), math.floor(player.y+5))
--was: camera:lookAt(player.x,player.y)
Re: Need help for tile map system
thank you sm
Who is online
Users browsing this forum: Ahrefs [Bot], Amazon [Bot] and 1 guest