12-01-2008, 10:24 PM
I noticed there wasn't a tutorial for a Fill button. Decided to make one quickly.
Difficulty 1/5 - Simple Copy/Paste
Client Side
Go to frmMirage and add a command button to your map editor and name it cmdFill. Double click it to open the code and add this between the sub that appears.
Then find EditorClearAttribs sub in modGameLogic and underneath that sub add this new sub.
I am not sure if the 7 should be something else? Not sure what vanilla MSE is, I can't remember
. So if it's filling a different tile than what you clicked on then change it to whatever yours is supposed to be. If that makes sense haha. Thats all.
Difficulty 1/5 - Simple Copy/Paste
Client Side
Go to frmMirage and add a command button to your map editor and name it cmdFill. Double click it to open the code and add this between the sub that appears.
Code:
Call EditorFillLayer
Then find EditorClearAttribs sub in modGameLogic and underneath that sub add this new sub.
Code:
Public Sub EditorFillLayer()
Dim y As Long
Dim x As Long
For y = 0 To MAX_MAPY
For x = 0 To MAX_MAPX
If frmMirage.optLayers.Value = True Then
With Map.Tile(x, y)
If frmMirage.optGround.Value = True Then .Ground = EditorTileY * 7 + EditorTileX
If frmMirage.optMask.Value = True Then .Mask = EditorTileY * 7 + EditorTileX
If frmMirage.optAnim.Value = True Then .Anim = EditorTileY * 7 + EditorTileX
If frmMirage.optFringe.Value = True Then .Fringe = EditorTileY * 7 + EditorTileX
End With
End If
Next x
Next y
End Sub
I am not sure if the 7 should be something else? Not sure what vanilla MSE is, I can't remember
