Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tile layer offfset value doesn't work in infinite map #247

Open
NO-MEANINGS opened this issue Jan 17, 2021 · 0 comments
Open

tile layer offfset value doesn't work in infinite map #247

NO-MEANINGS opened this issue Jan 17, 2021 · 0 comments

Comments

@NO-MEANINGS
Copy link

in tiled:
image
in love:
image

how to reproduce the bug:
create a new map with property infinity checked.
image
create a new tile layer and set some offset value. don't forget to put some tiles on layer.
image
draw the map in love, and you'll find the offset value doesn't work.

possible cause of the problem:
line 504 in init.lua: local offsetX = chunk and chunk.x or 0
line 505 in init.lua: local offsetY = chunk and chunk.y or 0
It seems that the method of calculating the offset value is wrong. I’m not sure since I’m new to programming. XD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant