Log In  

The manual describes layers, the optional last argument to map(), like so:

> LAYERS is a bitfield. When given, only sprites with matching sprite flags are drawn. For example, when LAYERS is 0x5, only sprites with flag 0 and 2 are drawn.

To me, this example indicates that only sprites with both flags set should be drawn. However, testing shows that sprites with either flag set will be drawn.

Cart #pederick_mapflagtest-0 | 2022-05-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

If this is as intended, can the manual be updated to say "or" rather than "and"? Something like this:

> LAYERS is a bitfield. When given, only sprites with at least one matching sprite flag are drawn. For example, when LAYERS is 0x5, only sprites with flag 0 or 2 are drawn.

P#111550 2022-05-09 12:36


[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-19 14:33:03 | 0.010s | Q:15