07-05-2008, 06:42 PM
This tutorial remembers your mapeditor's scrlPicture.value. This way the tile set will be at the same spot between uses.
On your map editor, double click cmdSend and paste this code at the top:
Now, double click cmdCancel, and paste the same code:
Now, put this code in Form_Load, for whichever form you use for your mapeditor:
And lastly, open modGameLogic and put this code with the other editor variables, I put mine under Public EditorWarpY As Long:
On your map editor, double click cmdSend and paste this code at the top:
Code:
EditorscrlPicture = scrlPicture.Value
Now, double click cmdCancel, and paste the same code:
Code:
EditorscrlPicture = scrlPicture.Value
Now, put this code in Form_Load, for whichever form you use for your mapeditor:
Code:
If EditorscrlPicture >= 0 Then
scrlPicture.Value = EditorscrlPicture
End If
And lastly, open modGameLogic and put this code with the other editor variables, I put mine under Public EditorWarpY As Long:
Code:
Public EditorscrlPicture As Long