Highlight Tile

From VbGORE Visual Basic Online RPG Engine

This code high-lights tiles that are under your mouse on the layer you have selected, making it easier to figure out exactly what you are clicking. This addition is intended for the map editor only.

Code

Open EditorMap.vbp.

Add:

<vb> If frmSetTile.GrhTxt.Text = 0 Then If frmSetTile.LayerChk.Value = Checked Then

Engine_Render_Grh MapData(HovertX, HovertY).Graphic(DrawLayer), Engine_PixelPosX(minXOffset + (HovertX - minX)) + (32 * (10 - TileBufferSize)) + PixelOffsetX, Engine_PixelPosY(minYOffset + (HovertY - minY)) + (32 * (10 - TileBufferSize)) + PixelOffsetY, 0, 1, True, -256, -256, -256, -256
           

End If End If

</vb>

In TileEngine.Bas>Engine_Render_Screen. Like this image:

Code.PNG

Example

EXAMPLE.PNG

Personal tools