Ultrasnofire Posted September 22, 2011 Author Share Posted September 22, 2011 Ultrasnofire's World Map TutorialOk this is my first tutorial. I was searching on the source tutorials and didn't see this tutorial. So in this tutorial I will be teaching you how to make a world map. This one won't just open a map that you have made and display the graphics, it will display which map you are on by pointing at a dot. If you don't know what I mean here is a screenshot of a basic one that I will be showing you to make :>! [![](http://www.freemmorpgmaker.com/files/imagehost/pics/b28617682e610281f76ab8ff5a46a9c0.png)](http://www.freemmorpgmaker.com/files/imagehost/#b28617682e610281f76ab8ff5a46a9c0.png)This is all a client modStepsOk you can do this 2 ways, The lazy way or the hard way. This is the lazy way.Step 1)Download a pre-made form of the world map attached to this page (this comes with 5 dots and the code to make them visible, you can build on this easily)Step 2)Go to frmMain and find ËœPrivate Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)"Then under:```Case vbKeyInsertIf Player(MyIndex).Access > 0 ThenpicAdmin.Visible = Not picAdmin.VisibleEnd If```Put```Case vbKeyHomefrmWorldMap.Visible = True```Youre done!! All you need to do is go in game and press the Home key and your map will open!Now for the hard way:Step 1)Make a new form and call it frmWorldMapStep 2)Create some shapes. Make 5 circles and 5 rectangles. Place them in any order but the rectangles should be hovering above the circles. This is what mine looks like:>! [![](http://www.freemmorpgmaker.com/files/imagehost/pics/90ecfd1bd3ee3535c238869ad2f1115f.png)](http://www.freemmorpgmaker.com/files/imagehost/#90ecfd1bd3ee3535c238869ad2f1115f.png)Call the rectangles:Arrow1Arrow2Arrow3Arrow4Arrow5make sure you set the visiblity of these rectangles to falseStep 3)Double click on the background of the from. A new sub called "Private Sub Form_Load()" should pop up. Inside the "end sub" and "Private Sub Form_Load()" put:``` Map = Player(MyIndex).MapIf Map = 1 ThenArrow1.Visible = TrueEnd IfIf Map = 2 ThenArrow2.Visible = TrueEnd IfIf Map = 3 ThenArrow3.Visible = TrueEnd IfIf Map = 4 ThenArrow4.Visible = TrueEnd IfIf Map = 5 ThenArrow5.Visible = TrueEnd If```Step 4)At then at the top of the code above "Private Sub Form_Load()" put:```Public Map As Integer```Step 5)Go to frmMain and find "Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)"Then under:```Case vbKeyInsertIf Player(MyIndex).Access > 0 ThenpicAdmin.Visible = Not picAdmin.VisibleEnd If```Put```Case vbKeyHomefrmWorldMap.Visible = True```You're done!! All you need to do is go in game and press the Home key and your map will open!If have tested this and it works on my game. If you think there is an error or a way to improve this please comment on this.Ultrasnofire Link to comment Share on other sites More sharing options...
Justn Posted September 22, 2011 Share Posted September 22, 2011 Cool idea never thought about doing it like this. I have a good picture of my world map im going to get rid of the green spots and put my picture under the rectangles. Thanks Link to comment Share on other sites More sharing options...
Carim123 Posted September 22, 2011 Share Posted September 22, 2011 This is a long way of doing this.When I get home from school, I'd gladly hand the pseudo-code. Link to comment Share on other sites More sharing options...
Prince Posted September 22, 2011 Share Posted September 22, 2011 Sweet! I am gonna use this. Link to comment Share on other sites More sharing options...
Ultrasnofire Posted September 22, 2011 Author Share Posted September 22, 2011 i forgot to say that you need to make all the rectangles visiblilty false so that when you open it they dont all pop up Link to comment Share on other sites More sharing options...
Jacquelinett Posted September 22, 2011 Share Posted September 22, 2011 Okay… when i first read this, i thought this is a tutorial for a minimap. After reading this, I found out that i was wrong. This is just a simple world map make out of form. I think a better way to do this is to draw a world map of your game, then use GetPlayerMap function to know what map you are on. Then have a sub that set the arrow on wherever the place you want them to be. What I'm trying to say is, make a world map that have imaginary longtitude and latitude, I will say longtitude = x and latitude = y. If map 1 have x = 2 and y = 5 then when you are in map 1, make a command that put the arrow on your world map picture using the x and y. Link to comment Share on other sites More sharing options...
Prince Posted September 23, 2011 Share Posted September 23, 2011 Of course Tiana, this is a world map dat show where a player is, in a form just like you said. And I gonne try your idea above. Link to comment Share on other sites More sharing options...
Ultrasnofire Posted September 24, 2011 Author Share Posted September 24, 2011 @TianaJRP:> Okay… when i first read this, i thought this is a tutorial for a minimap. After reading this, I found out that i was wrong. This is just a simple world map make out of form. I think a better way to do this is to draw a world map of your game, then use GetPlayerMap function to know what map you are on. Then have a sub that set the arrow on wherever the place you want them to be. What I'm trying to say is, make a world map that have imaginary longtitude and latitude, I will say longtitude = x and latitude = y. If map 1 have x = 2 and y = 5 then when you are in map 1, make a command that put the arrow on your world map picture using the x and y.i like your idea i think i might make a tutorial to make something like this and give you credit for the idea. Link to comment Share on other sites More sharing options...
pooperscoop1 Posted January 29, 2012 Share Posted January 29, 2012 mine won't work for some reason. Link to comment Share on other sites More sharing options...
Ultrasnofire Posted February 19, 2012 Author Share Posted February 19, 2012 @pooperscoop1:> mine won't work for some reason.You will have to be more specicfic for me to actually be able to help you Link to comment Share on other sites More sharing options...
Emy Posted February 27, 2012 Share Posted February 27, 2012 I would like to know how to make it update when you're changing maps without closing and reopen it.. Thanks.Edit: Never mind, figured it out. If anyone wants to know, instead of typing the code of the arrow into the form sub, do it in HandlePlayerData in modHandleData :) Link to comment Share on other sites More sharing options...
or3o Posted April 4, 2012 Share Posted April 4, 2012 Thanks for the tutorial it really helped and here is a screen shot of my map just in case you wanted to see what people are doing with your idea. I also have a question, how to i make it so when you press home after the maps already open the map closes? Sorry I am still a super huge noob. Link to comment Share on other sites More sharing options...
Ruins of Hell Posted April 4, 2012 Share Posted April 4, 2012 @or3o:> Thanks for the tutorial it really helped and here is a screen shot of my map just in case you wanted to see what people are doing with your idea. I also have a question, how to i make it so when you press home after the maps already open the map closes? Sorry I am still a super huge noob.Find:```‘Ultrasnofire’s Map systemCase vbKeyHome frmWorldMap.Visible = True```and replace it with:```‘Ultrasnofire’s Map systemCase vbKeyHome frmWorldMap.Visible = Not frmWorldMap.Visible``` Link to comment Share on other sites More sharing options...
or3o Posted April 4, 2012 Share Posted April 4, 2012 thank you it works great.Hey im not really sure if this is the place to ask but with this tutorial i found out i can only have 253 controllers so it wont let me add anymore shapes to my map. Is there a work around or even a different way to go about this? i need about 80 more shapes before i can finish my map :/ thanks guys.well i figured something out, i just made a new form called world map2 and added this to frm main Case vbKeyHome If Player(MyIndex).Map < 253 Then frmWorldMap.Visible = Not frmWorldMap.Visible Else frmworldmap2.Visible = Not frmworldmap2.Visible End Ifthat way it checks to see what map im on and opens the right map from now you can have wayy more maps display on your world map. Link to comment Share on other sites More sharing options...
narut0no Posted May 12, 2012 Share Posted May 12, 2012 Wow Nice This is really UseFull,Here my Work using your tutorial WorldMap!!!![](http://www.freemmorpgmaker.com/files/imagehost/pics/b4075059742aa0585c2ad6588f82737e.png)10 THUMBS UP ! Link to comment Share on other sites More sharing options...
zerosavior115 Posted May 14, 2012 Share Posted May 14, 2012 Great….. but is it possible to do this in a picMap instead of a form?? Link to comment Share on other sites More sharing options...
Prince Posted June 10, 2012 Share Posted June 10, 2012 ~~yes you can do it with PicMap~~Sorry my Mistake i did it and get an error.Anyway, i do what the tutorial says and i compiled. After i open the game and press Home it close the game. I mean it doesn't show the World Map frame and also close the game it self. I'm using Eclipse Chronicles of Jazz costume version. Link to comment Share on other sites More sharing options...
Ultrasnofire Posted September 25, 2012 Author Share Posted September 25, 2012 Wow guys! I had been off the forums for a while and came back to seeing this! ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png) I love what you guys have done with the code ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)Thnx tons Link to comment Share on other sites More sharing options...
Zzbrandon Posted September 30, 2012 Share Posted September 30, 2012 Ok when I press home my game closes and map doesnt even appear? Link to comment Share on other sites More sharing options...
Zzbrandon Posted September 30, 2012 Share Posted September 30, 2012 DOes this even work? Link to comment Share on other sites More sharing options...
or3o Posted October 1, 2012 Share Posted October 1, 2012 Yea brandon it works your doing it wrong. And seriously its better to edit your comment than mutipost. Link to comment Share on other sites More sharing options...
Zzbrandon Posted October 1, 2012 Share Posted October 1, 2012 No im not I did all the steps Link to comment Share on other sites More sharing options...
or3o Posted October 2, 2012 Share Posted October 2, 2012 if you where doing it right it would have worked. Im not trying to sound like a jerk but i have used this tutorial and it worked perfectly. Try setting a different keto to open the minimap. or add a cmd button and use that to open the map. just to check if the maps actually working. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now