MAPDRAWMODE

Top  Previous  Next

Syntax

MAPDRAWMODE(map as POINTER,mode as UINT)

Description

Specifies the drawing mode of the map.

Parameters

map - Map pointer returned by the NEWMAP function

mode - New drawing mode

Return value

None

Remarks

Maps support transparency (mask colors) in the same way sprites do. Mode can be either @BLOCKCOPY or @TRANS. When the drawing mode is set to @TRANS the color specified by MAPMASKCOLOR is not drawn. This allows multiple map layers to be used creating complex 2D environments.

See Also: MAPMASKCOLOR, DRAWMAP, NEWMAP

Example usage

MAPDRAWMODE mymap, @TRANS
MAPMASKCOLOR mymap, RGB(255,0,0)