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
#2
I remember you. Xaden/Frozengod from chaos engine is claiming credit for a tun of your code.
Reply
#3
I remember you too Smile
has your msn changed?
Reply
#4
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)