![]() |
|
Remember Tileset position - 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: Resources (https://mirage-engine.uk/forums/forumdisplay.php?fid=49) +---- Thread: Remember Tileset position (/showthread.php?tid=1741) |
Remember Tileset position - Rian - 07-05-2008 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: Code: EditorscrlPicture = scrlPicture.ValueNow, double click cmdCancel, and paste the same code: Code: EditorscrlPicture = scrlPicture.ValueNow, put this code in Form_Load, for whichever form you use for your mapeditor: Code: If EditorscrlPicture >= 0 ThenAnd 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 |