Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,561 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to transfer from menu to level at a click of a button? #359382
02/17/11 06:14
02/17/11 06:14
Joined: Jan 2011
Posts: 5
D
Dontstealmyfood Offline OP
Newbie
Dontstealmyfood  Offline OP
Newbie
D

Joined: Jan 2011
Posts: 5
Hello I have looked everywhere and have found no examples or scripts of how to load a level from a game menu at the click of a button. Pls help thx guys!!

Re: How to transfer from menu to level at a click of a button? [Re: Dontstealmyfood] #359389
02/17/11 09:50
02/17/11 09:50
Joined: Jun 2006
Posts: 379
Flevoland, 5 meters under wate...
Roel Offline
Senior Member
Roel  Offline
Senior Member

Joined: Jun 2006
Posts: 379
Flevoland, 5 meters under wate...
first you make a function which loads your level:

function open_level()
{
level_load("yourlevel.wmb");
}

and in the panel code you create the button, and assign the open_level function to it:

button(x, y, bmapOn, bmapOff, bmapOver, open_level, functionOff, functionOver);


Check out the throwing game here: The throwing game
Re: How to transfer from menu to level at a click of a button? [Re: Roel] #359891
02/20/11 03:21
02/20/11 03:21
Joined: Jan 2011
Posts: 5
D
Dontstealmyfood Offline OP
Newbie
Dontstealmyfood  Offline OP
Newbie
D

Joined: Jan 2011
Posts: 5
Thank you, it worked!

Re: How to transfer from menu to level at a click of a button? [Re: Dontstealmyfood] #360159
02/22/11 14:52
02/22/11 14:52
Joined: Jan 2011
Posts: 65
R
reknak Offline
Junior Member
reknak  Offline
Junior Member
R

Joined: Jan 2011
Posts: 65
@Dontstealmyfood, you may want to look for the NHA RPG Template, website link -> (http://rpg.nighthawk.dk/center/). This template includes a script about mainmenu which includes a lot handy things for a menu (like new game, options, save/load, exit etc.).

Last edited by reknak; 02/22/11 21:20. Reason: fixed link
Re: How to transfer from menu to level at a click of a button? [Re: reknak] #360169
02/22/11 16:08
02/22/11 16:08
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
hey reknak!
some small hint for you: we can't acces your computer!
you have to upload the sample or create a http/ftp server with port forwarding, so we can acces directly your computer wink


Visit my site: www.masterq32.de
Re: How to transfer from menu to level at a click of a button? [Re: MasterQ32] #360240
02/22/11 21:20
02/22/11 21:20
Joined: Jan 2011
Posts: 65
R
reknak Offline
Junior Member
reknak  Offline
Junior Member
R

Joined: Jan 2011
Posts: 65
link fixed now tongue


Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1