26-09-2009, 09:34 PM
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!
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]](http://img180.imageshack.us/img180/5084/step1m.png)
3. In the code, find a free spot and copy-paste this:
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:
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!

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]](http://img180.imageshack.us/img180/5084/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: