![]() |
[Bug?] Disable Layer and Raster Callbacks - Printable Version +- Tilengine - The 2D retro graphics engine forum (http://tilengine.org/forum) +-- Forum: English forums (http://tilengine.org/forum/forumdisplay.php?fid=3) +--- Forum: Support (http://tilengine.org/forum/forumdisplay.php?fid=7) +--- Thread: [Bug?] Disable Layer and Raster Callbacks (/showthread.php?tid=2309) |
[Bug?] Disable Layer and Raster Callbacks - System64 - 02-09-2025 Hi! I maybe found a bug with layers. If I have a raster callback interacting with a layer, but I disable this layer somewhere else in the code, the layer is still enabled. Is this behavior normal? Wouldn't it cause problems if I want to keep it disabled for some reasons? Thanks for your answer! RE: [Bug?] Disable Layer and Raster Callbacks - megamarc - 03-01-2025 Hi, I can't reproduce what you describe. You can disable or enable layers inside raster callbacks, and they keep in that state until you change it. Take into account that setting the type of layer (i.e. tilemaps, bitmap, objects...) automatically enables it. This variation of the "tutorial" basic example disables and enables the layer mid-frame with expected result: Code: #include "Tilengine.h" RE: [Bug?] Disable Layer and Raster Callbacks - System64 - 03-06-2025 (03-01-2025, 05:54 PM)megamarc Wrote: Hi, Oh so that was intentional, sorry. However it seems I have a more serious bug. Did you already tried to load an objectList from a TMX file? I have no issues under Linux, but it crashes on Windows, saying that I access invalid memory, with C# at least. RE: [Bug?] Disable Layer and Raster Callbacks - megamarc - 03-08-2025 Hi, Can you provide a working example that reproduces the issue, with source code and assets and the following information?
RE: [Bug?] Disable Layer and Raster Callbacks - System64 - 03-09-2025 (03-08-2025, 06:21 PM)megamarc Wrote: Hi, Hi! I will send you a minimal reproductible example as soon as I can. |