Page 1 of 1

Help with my first game

Posted: May 23rd, 2010, 12:12 pm
by klimyriad
In step of just keep asking loads of questions wasting the forum space i decided just to make a new thread which will also help anyone else

Right as i got not alot of experience i want to know a few things

how to make your own menus and game intro and put it into the game
then how to put the map and stuff into the game
also how to put music where you want it and the menu music as well


i help would be nice and will help others in the future

With this help i can keep making games without an hitch in the future

thanks
klimyriad

Re: Help with my first game

Posted: May 27th, 2010, 5:57 am
by Leo_V117
locate the menus.cfg file and search "Main".

find the following section of code:

Code: Select all

main = [
	guilist [
		if (= $editing 1) [
			guilist [
				guibutton "Newmap"		"showgui newmap"
				guibutton "Savemap"		"showgui savemap"
				guibar
				guibutton "Test Map"		"edittoggle"
				guibar
	 			guibutton "New particle"	"showgui newparticles"
				guibutton "New light"		"showgui newlight"
				guibutton "New Mapmodel"	"showgui mapmodels"
				guibutton "Find Entities (F5)"	"showgui entfind"
				guibutton "Editing GUI"		"showgui editing"
				guibutton "Skybox menu (F4)"	"showgui skies"
				guibutton "Edit Materials"	"showgui materials"
				guibutton "Quickedit Menu (F3)"	"showquickgui"
				guibutton "Texture Menu (F2)"	"showtexgui"
			]
			guibar
		]
		guilist [
			guibutton "Campaign"		[showgui Campaign]
			guibutton "Map Community"	[showgui Editor]
			guibutton "Test"			[showgui Game; paused (= $paused 0); togglemessage $paused "paused"]
			guibutton "Multiplayer"	[showgui multiplayer]
			guibutton "Help"		[showgui help]
			guibar
			guibutton "Bio"			[showgui Bio]
			guibar
			guibutton "Settings"		[showgui Settings]
			guibutton "Extras"		[showgui Extras]
			guibar
			guibutton "Options"		[showgui options]

			guibutton "Change Skill Level" 	[showgui skilllvl]
			guibutton "About"		[showgui About]
			guibutton "Exit The Game"	quit	exit
		]
	]
]
(mines modified)

add this part to the part where "Exit The Game" is located... preferably above the part where it says "Help" on mine:

Code: Select all

			guibutton "Campaign"		[showgui Campaign]
now, go to the bottom and add this:

Code: Select all

newgui Campaign [
	guibutton "New Game"			[showgui New]
	guibutton "Load"				[showgui Load]
	guibar
	guibutton "Return"			[showgui main]
]

newgui New [
	guititle "New Game"
	guibar
	guilist [
		guitext "Difficulty"
		guilist [
			guibutton "Easy"			[botskill = 1]	action
			guibutton "Casual"		[botskill = 10]	action
			guibutton "Hardcore"		[botskill = 25]	action
			guibutton "Legendary"		[botskill = 50]	action
			guibutton "Extinction"		[botskill = 100]	action
			]
		]
	guibar
	guibutton "Start Game"	[sp Intro]
	guibar
	guibutton "Return"	[showgui Campaign]
]
(ignore the "Difficulty" for now)

the part:

Code: Select all

	guibutton "Start Game"	[sp Intro]
Is the map load section. Name the starting map as Intro and connect the others to the Intro map and Onwards.

Hope this Helps.
- Leo

Re: Help with my first game

Posted: May 28th, 2010, 10:13 am
by klimyriad
wow thanks leo that will help allot

Re: Help with my first game

Posted: June 1st, 2010, 2:59 pm
by klimyriad
Leo i done that but nothing happened

Re: Help with my first game

Posted: June 5th, 2010, 2:25 pm
by Leo_V117
send me your menus.cfg

Re: Help with my first game

Posted: June 5th, 2010, 4:17 pm
by klimyriad
I will give me a few minutes

Edit: here the link: http://www.mediafire.com/?mdwv0jkii0o