Mirage Source
[Feature] Map editor "live" scrolling - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: Source Code Development (https://mirage-engine.uk/forums/forumdisplay.php?fid=51)
+----- Forum: Mirage Source 4 (Visual Basic 6) (https://mirage-engine.uk/forums/forumdisplay.php?fid=44)
+------ Forum: Tutorials (https://mirage-engine.uk/forums/forumdisplay.php?fid=13)
+------ Thread: [Feature] Map editor "live" scrolling (/showthread.php?tid=3159)



[Feature] Map editor "live" scrolling - Rory - 26-09-2009

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:


Re: [Feature] Map editor "live" scrolling - Labmonkey - 27-09-2009

I remember you. Xaden/Frozengod from chaos engine is claiming credit for a tun of your code.


Re: [Feature] Map editor "live" scrolling - xp79 - 27-09-2009

I remember you too Smile
has your msn changed?


Re: [Feature] Map editor "live" scrolling - Rory - 27-09-2009

Hehe, I know he is, but none of it is usefull nowadays, so it doesn't matter Big Grin

My msn has changed but I think it's in my profile, otherwise just PM me Smile I'm kinda teaching my friend vb6 so I thought we might as well both join the MS community!

Good to be back hehe