Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fill Tile Button
#1
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.

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 Tongue. 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.
#2
Already been made xD

Thanks anyway.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
#3
Oh haha, I couldn't find one Tongue. Oh well..
#4
Actually there's 3.

One fill, one attribute fill, then one more that did something odd..
Can't recall.
#5
Ah I see it now and I did before but didn't read the entire post Tongue. Just looked at the attribute fill part and skipped over the layer fill.
#6
Sorry for necroing, but there is a fill attribute, fill layer, and then there is one that combines both of them into one button.
#7
JEUSUS FUCKING CHIRST MAN WTF!

LOCKED
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?


Forum Jump:


Users browsing this thread: 1 Guest(s)