-
Notifications
You must be signed in to change notification settings - Fork 30
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
Animated tile IDs, and nullptr returned by tileset->getTile(tileId), local vs global #110
Comments
Thank you for posting this, @Moros1138 🙂 Edit: |
First, you're very welcome. Regarding the bug label. I, myself, wasn't particularly comfortable with calling it a bug when I was crafting the issue/post. I opted to approach it from the "it might save someone else some hassle" kinda post! If I might briefly indulge in non sequitur. It's been great being able to integrate Tiled maps into my own projects. Originally I rawdogged JSON parsing and doing it all myself. Then I found out you already suffered for me! Thanks for Tileson! |
tileson/examples/sfml/SfmlDemoManager.cpp
Line 304 in 4a9d556
This fails to account for the idea of multiple tilesets in a single map. I just spent the last 3 hours (or so) trying to figure out why my
animatedTile
was alwaysnullptr
To save others from the same frustration here's what works for me. I had to modify the animation code in my own project in this way, but I figured I'd use the examples because it's how people are learning to use Tileson.
I don't know that this is indicative of a problem with Tileson and the way it handles Ids, but I wanted to share this so hopefully others don't befall my fate.
The text was updated successfully, but these errors were encountered: