I wanted to make compatible qMovement to use the tile shadows that shadow pen draw as collisions so i have a few questions:
How is shadow pen defined? how could i call that function from another plugin?
I had a look at the core scripts (_readMapData and _addShadow methods of Tilemap, rmmz_core.js) and it looks like shadow bits for tile (x, y) can be fetched like this:
$gameMap.data()[(4 * $gameMap.height() + y) * $gameMap.width() + x]
(It's 4 because that's the shadow layer index.) This is a 4-bit number, i.e. 0000~1111 in binary, or 0~15 in decimal. Each bit corresponds to a quarter tile: it's 1 iff there's a shadow in that quadrant. The bits are ordered as follows:
0 1
2 3
Thread closed
Next time, please do not make multiple threads for the same question.