|
2 registered members (TipmyPip, Quad),
5,145
guests, and 4
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
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
Senior Member
|
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);
|
|
|
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
Dontstealmyfood
OP
Newbie
|
OP
Newbie
Joined: Jan 2011
Posts: 5
|
|
|
|
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
reknak
Junior Member
|
Junior Member
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
Expert
|
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 
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|