-
Notifications
You must be signed in to change notification settings - Fork 99
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
Map making guide #67
Comments
Yes, this is related to the "Guide" documentation section, that is mostly incomplete and needs writing. Some of the limitations are stated on the respective "Reference" section for the API calls (tileset section, bitmap section...) Since release 2.6.0 pixel image files are not restricted to 8bpp pixel format, but instead to up to unique 255 colors (they're converted to indexed color at load time). I'm curios about the datasets you're using to make the loader crash, no one complaied about this until now. With them I could fix the loader. |
Here is the map that crashes with "Not enough memory". |
The problem was an unchecked limit of 16 layers per tmx file that was causing overflow. Your map has 37 layers, never seen that. Now the limit is 64 and is tested against overflow. The example shows the background plane scrolling upwards |
Hi! |
I had difficulty with using more than 2 layers lately as well. The second one loaded from the map would often not load at all, even with a lot of fiddling. The idea was to have it be above the character, therefore occluding them, and combined with collision detection, giving the sense of being behind stuff well. However as well as not having support for collision objects from the tileset prevents more fine collision types. At best I'd need to import directly the file using a TMX C library, search for the collision objects such as rectangles, then implement myself all that. |
@GithubPrankster Example "crashexample.zip" provided by @IoriBranford now loads and displays properly in release 2.8.0 |
There could be a guide or spec document on how to make maps and tilesets that will work, noting things like:
The text was updated successfully, but these errors were encountered: