Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why doesn parallax/MapDrawBGT work ?

mapdrawbgt parallax
0
Posted

Why doesn parallax/MapDrawBGT work ?

0

This is possibly the most asked question. You nominate a colour to be transparent (usually index 0 in 8bit, some uncommon colour in other depths such as magenta (0xFF00FF)). This is NEVER drawn if the graphic is in the FG1, FG2, FG3 fields of a block structure. If the colour is used in the BG graphic it IS drawn UNLESS the BG Tranparency box is checked in the block properties. The BG Transparency box is the top left box of the ‘Others’, this will be labelled better in later versions of the editor. Make sure you check this box for block 0 if you want BG transparency! The BG transparency only affects drawing in calls to MapDrawBGT. You can check you’ve done it correctly in MappyWin32 by doing an anim preview in the correct colour depth with ‘show background with transparency’ checked and some block other than 0 as the ‘Block Graphic for parallax’. You can also use ‘Autoset BG transparency’ in MapTools.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123