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

Layers or ObjectGroup In Group #70

Open
TheDudeAlexIs opened this issue Aug 10, 2023 · 1 comment
Open

Layers or ObjectGroup In Group #70

TheDudeAlexIs opened this issue Aug 10, 2023 · 1 comment

Comments

@TheDudeAlexIs
Copy link

Hi,
First of all thank you very much to you and all the people who contributed to this project.
I am a beginner developer and I have searched everywhere but I can't find a way to load objectsGroup or Layers that are in a group on Tiled.

I tried to look in your code and add this into the map.cs

foreach (var e in xMap.Elements("group").Elements("layer"))
Layers.Add(new TmxLayer(e, Width, Height));
foreach (var e in xMap.Elements("group").Elements("objectgroup"))
ObjectGroups.Add(new TmxObjectGroup(e));

And it's working \o/

I don't know if it's the right way to do it or if it's already possible and i missed the process.

Thanks again for your work
Br

@marshallward
Copy link
Owner

I'm afraid it's been an incredibly long time since I have worked on this project. Despite its unmaintained status, patches from contributors appear to have allowed it to limp along.

To the best of my memory, there are some unimplemented elements, and ObjectGroup may be one of them. Or perhaps they are implemented but were never tested.

I will see if I can find some time to look into your problem, but am unsure when it will happen. But perhaps someone else watching this issue has more information.

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

2 participants