Up until now I've been okay with displaying my terrain using the MATRIX commands, but I've come to realize it won't suffice moving forward. My game is 2d using the 3d commands (such as object plains) for speed, but to ensure the objects are displayed correctly I set them all at a Y depth of 0 and use the following command to force them to be displayed in the order of their object number instead of depth: "SET GLOBAL OBJECT CREATION 4".
This fixed the issue of objects being displayed in the correct order, but now I need to display some matrices above all of the objects and there seems to be no way to do so. I tried using the command "SET MATRIX PRIORITY MatrixNumber, 1" on the matrices that need to be displayed above everything, but it doesn't seem to make a difference.
Here's an example of the code I'm using to create the matrices:
`Liquid matrix
glob_Matrix_Liquid = FIND FREE MATRIX()
MAKE MATRIX glob_Matrix_Liquid, 1536, 1536, 48, 384
SET MATRIX glob_Matrix_Liquid, 0, 1, 1, 0, 1, 0, 1
PREPARE MATRIX TEXTURE glob_Matrix_Liquid, 1001, 4, 1
SET MATRIX TRIM glob_Matrix_Liquid, 1.0 / 128.0, 1.0 / 4.0
GHOST MATRIX ON glob_Matrix_Liquid, 5
SET MATRIX PRIORITY glob_Matrix_Liquid, 1
...and the code for creating an object:
var_InstanceID = FIND FREE OBJECT(glob_Priority_BlockFalling_Start, glob_Priority_BlockFalling_End)
MAKE OBJECT PLAIN var_InstanceID, con_Tile_Size, con_Tile_Size
POSITION OBJECT var_InstanceID, var_PositionX, 0, var_PositionZ
DISABLE OBJECT ZDEPTH var_InstanceID
ROTATE OBJECT var_InstanceID, 270, 180, 0
With all that said, if there's no way to get matrices to display over objects then I need to find an alternative. Are there any plugins or commands that allow you to display terrain using object plains? I've tried using individual object plains for each tile in the past but that proved to be
very slow. I have to be able to edit what tile is displayed in real time as is allowed with the MATRIX commands.
Thanks in advance for any and all help with this