Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Feature] Map editor "live" scrolling
#1
Map editor "live" scrolling.

Hi everyone. I've been pretty inactive the later year/s, hope somebody still remembers me hehe. :roll:

This is a really simple feature, kinda bugs me nobody's done this before, especially with mirage, but hey, nothing's perfect.

I'd rate this tutorial a 1/5 difficulty, it's simply copy-paste! Wink

First of all, open your Mirage.prj file in Visual Basic 6

1. Open up frmMirage.frm in the components window

2. Doubleclick scrlPicture

[Image: step1m.png]

3. In the code, find a free spot and copy-paste this:
Code:
Private Sub scrlPicture_Scroll()
    Call MapEditorTileScroll
End Sub

Private Sub scrlTileSet_Scroll()
    Map.TileSet = scrlTileSet.Value
    lblTileset = scrlTileSet.Value
    
    'Call InitTileSurf(scrlTileSet)
    
    Call BltMapEditor
    Call BltMapEditorTilePreview

    scrlPicture.Max = (picBackSelect.Height \ PIC_Y) - (picBack.Height \ PIC_Y)

End Sub

4. Done! Now when scrolling for tiles the picture will follow the scroll instead of updating on let-go.

What it does is simply just updating while scrolling instead on click - too simple.

Cheers! :geek:
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)