Gamestudio Links
Zorro Links
Newest Posts
zorro with ccxt?
by opm. 03/03/26 03:17
ZorroGPT
by TipmyPip. 03/02/26 18:13
WFO Training with parallel cores Zorro64
by Martin_HH. 02/26/26 16:03
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
Camera always moves upwards?
by clonman. 02/21/26 09:29
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (TipmyPip, Quad), 5,145 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
the1, alx, ApprenticeInMuc, PatrickH90, USER0328
19200 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