Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Making Your Game Unique, A Collection of Tutorials - By The Magician


Mulkaar
 Share

Recommended Posts

**Making Your Game Unique, A Collection of Tutorials - By The Magician**

_Hello All. Following on from my previous Tutorial http://www.touchofdeathforums.com/smf/index.php/topic,42744.0.html I have started writing the next step to this tutorial Saga. So. You have you game. Its a normal run of the mill MMORPG. What now? Well over the next weeks I will be adding different tutorials to help give you inspiration and brand new features! All tutorials here are made by me unless specified. No tutorial may be claimed as your own unless the author says so._

**Adding New Main Menu Functions (A Story and a World Map)**

You Will Need:

Eclipse Source 2.7
VB6
An IMG of a Story
An IMG of a World Map
To Read This Tutorial Carefully

_In this tutorial partly inspired by Ambardia Online by Ambard and Richy I'm going to show you how to add functions to your main menu which gives the user the ability to read the games background and look at the world map! Please note that I'm a complete beginner to VB6 and so I did this the way I saw easiest possible. Lets begin!_

1.Open up your **Eclipse 2.7 Source File**
![](http://i485.photobucket.com/albums/rr213/Mulkaar/EclipseSource.png)

2.Find the form **frmMainMenu**
![](http://i485.photobucket.com/albums/rr213/Mulkaar/VB6Forms.png)

3.Go to the left and add a new **Command Button**
![](http://i485.photobucket.com/albums/rr213/Mulkaar/VB6CommandButton.png)

4.Drag out the **Command Button** to the required size.
![](http://i485.photobucket.com/albums/rr213/Mulkaar/CommandButton.png)

5.**Copy and Paste (CTRL+C then CTRL+V)** the Command Button so you have two. Place them in a neat row or column.
![](http://i485.photobucket.com/albums/rr213/Mulkaar/VB62CommandButtons.png)

6.Now click on the **Left Button** and a little box will appear on the bottom right, change the **NAME** to WorldMapButton. And the **Right Button** to StoryButton.
![](http://i485.photobucket.com/albums/rr213/Mulkaar/VB6NameChange.png)

7.Now on the same button find the **CAPTION** and change it to World Map for the WorldMapButton and Story for the StoryButton.
![](http://i485.photobucket.com/albums/rr213/Mulkaar/VB6CaptionChangeRealName.png)

8.Now goto **Project>New Form>Open**. Do this twice so you have Form1 and Form2
![](http://i485.photobucket.com/albums/rr213/Mulkaar/VB6ToolbarProject.png)
![](http://i485.photobucket.com/albums/rr213/Mulkaar/VB62NewForms.png)

9.Left Click Form1 and **Right Click>Properties**. Change the **NAME** to frmWorldMap and the **CAPTION** to World Map. Now Left Click Form2 and **Right Click>Properties**. Change the **NAME** to frmStory and the **CAPTION** to Story.
![](http://i485.photobucket.com/albums/rr213/Mulkaar/VB6ChangingFormNameWorldMap.png)

10.Now **Double Left Click** frmWorldMap and you'll see a window! Goto the bottom right corner and find **PICTURE** when it asks for a picture click the **(…)** and **BROWSE** for your picture of your picture of the world map. Then click **OPEN**! You should have something like this:
![](http://i485.photobucket.com/albums/rr213/Mulkaar/VB6AddWorldmapPicture.png)
![](http://i485.photobucket.com/albums/rr213/Mulkaar/VB6WorldMapResizeForm.png)

11\. **SELECT** the form and **RESIZE** it to the required size.
![](http://i485.photobucket.com/albums/rr213/Mulkaar/VB6WorldMapTrueForm.png)

12\. Now **DOUBLE CLICK** the frmStory and you'll have another form like this:
![](http://i485.photobucket.com/albums/rr213/Mulkaar/VB6StoryForm.png)

13\. **RESIZE** it too a bigger size for the moment.

14\. Now goto the Toolbar on the left and add a **PICTURE** and **BROWSE** for the picture of your story. And **OPEN** it. Move it around so it fits nicely. **SELECT** the Whole Form and goto the bottom right. Change the Background Fill to the colour of your Story background (In my case, white). Now Here I also **ADDED** two more pictures, an old man for that storytelling feel and a Title to make it seem even more Fairytale like:
![](http://i485.photobucket.com/albums/rr213/Mulkaar/Vb6StoryFinished.png)

15\. Now **DOUBLE CLICK** frmMainMenu and then double click the Button (World Map) now you'll see you have a script here. Where it says Private Sub WorldMapButton_Click (…) is where you want to add script. So. Underneath that line and above the End Sub line. Write frmWorldMap.Visible = True and then space it in so it looks like mine:
![](http://i485.photobucket.com/albums/rr213/Mulkaar/VB6AddingtheWorldMapScript.png)

16.Now go back to frmMainMenu but this time **DOUBLE CLICK** the Button (Story) you'll see another script along the same lines as above. This time add Where it says Private Sub frmStory_Click (…) is where you want to add script. So. Underneath that line and above the End Sub line. Write frmStory.Visible = True and then space it in now it should look like this:
![](http://i485.photobucket.com/albums/rr213/Mulkaar/Vb6BothScripts.png)

17.Almost finished! Goto **File>Save As** and save it under whatever name you wish. Then goto **File>Make Client.exe** And Save it under a new name when prompted (in this case Test.exe).  Wait for it to load then when you're sure its done. Click close! If prompted to save again then do under a new name and always save again before closing just in
case!
![](http://i485.photobucket.com/albums/rr213/Mulkaar/VB6MakingExe.png)

18.Now open up your **Eclipse Source 2.7 Folder** and open Test.exe you should now have a main menu like this:
![](http://i485.photobucket.com/albums/rr213/Mulkaar/VB6theNewMainMenu.png)

19.Now click on the World Map Button! Wow! Did a whole new window with your World Map just pop up? Cool huh!?
![](http://i485.photobucket.com/albums/rr213/Mulkaar/Vb6WorldMap.png)

20\. Now try the Story Button! Wait what? A Whole new Story Window just popped up too? Now you can read it! Cool huh?! Just close either window by clicking the X in the top right corner!
![](http://i485.photobucket.com/albums/rr213/Mulkaar/VB6Finish.png)

–-----------------------------------------------------------------------------------------------------------------------------------------------------------------

_Well that's all for now Folks! I really hope you enjoyed reading and doing this as much as I did. Seriously VB6 is soo easy to edit your GUI etc! Try it and mess around with a new Client I hope this is a start of great inspiration for you guys. **If there are any tutorials you want doing then post here and I'll try to cover it! Please no "Scripting Questions such as I need help with this script etc. Any problems? Post here!"**_

**Regards,

The Magician**
Link to comment
Share on other sites

@Jna:

> This is a very good and complete tutorial. Good Job!

@[6310:

> Harris link=topic=46379.msg471296#msg471296 date=1244999497]
> Nice tutorial for people starting out with VB6.

Thanks more are to be coming soon.

@☺Skell:

> This should be moved to http://www.touchofdeathforums.com/smf/index.php/board,34.0.html and put into the sticky thread.

Skell it's posted here because my other tutorial, Creating a Game - Compiled by The Magician is stickied here so I thought it'd be better.

Anyway thanks for the positive comments :D
Link to comment
Share on other sites

Cheers guys. Before I start adding new tutorials Anything else wanting to be covered?

**Admin Note:**Please take this out of the VB6 Tutorials. As this is not just going to be a VB6 Tutorial thats just one. please move back into General Chat. Regards,

Magician.
Link to comment
Share on other sites

@zemon:

> i dont got the project so its a normal file not a vbp :( i can select wat it will open with but i dont got the file so i cant open

Im sorry? If you mean you cant find the source click on downloads and download the Eclipse Source. :D
Link to comment
Share on other sites

  • 2 weeks later...
@The:

> Im sorry? If you mean you cant find the source click on downloads and download the Eclipse Source. :D

Err i think i have the same problem. When i open the Editor/Server.vpw/.vpb files…(I opened all 4 seperately)
And they each came up as text documents.. Instead of what you got.(Files that you can click and drag.)
Messege me if you can help plz.

On Another Note: You can do this without VB6? If so could u tell me how?
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...