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

Add support for horizontal and vertical offset in map layers #136

Open
vmenezio opened this issue Jan 2, 2021 · 0 comments
Open

Add support for horizontal and vertical offset in map layers #136

vmenezio opened this issue Jan 2, 2021 · 0 comments

Comments

@vmenezio
Copy link

vmenezio commented Jan 2, 2021

Plugin version
2.3, from Github
Godot 3.2.1
Tiled 1.4.3

Issue description
Map layer horizontal and vertical offset values are not accessible from imported metadata.

Steps to reproduce

  1. Create a tile layer in a Tiled map with offset set to a non-zero value:
    image

    Resulting .tmx file should have a line like this:

<objectgroup id="4" name="products" offsetx="0" offsety="-8">
  1. Try to retrieve the offset data from Godot:
print("offset available? ", layer.has_meta("offsetx"))
>>> offset available? false

Sample map or tileset
test-offset.zip

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