Jump to content


Photo

Professional Menu Scripts!


  • Please log in to reply
187 replies to this topic

#91 Mordi

Mordi

    Maker of Menus

  • New Member
  • 3635 posts

Posted 30 December 2007 - 08:44 PM

I am currently making some minor improvements here and there. Will update some time later.
  • 0

#92 CaKsTeR

CaKsTeR

    GMC Member

  • New Member
  • 761 posts

Posted 11 January 2008 - 04:02 PM

I tried using the unactive script, and when I load the game up I get this error:


___________________________________________
ERROR in
action number 1
of Create Event
for object o_menu:

In script sc_menu_create:
In script sc_button_active:
Error in code at line 1:
b_active[argument0,argument1]=argument2;

at position 10: Wrong type of array index


Here is my code:

//locking buttons//
sc_button_active("Level 1-2","menu_levels1",false)


PS: Sweet scripts <_<
  • 0

#93 CHK(2)

CHK(2)

    GMC Member

  • GMC Member
  • 81 posts

Posted 11 January 2008 - 05:52 PM

This is great! Thanks very much, <_<
it's really good and original! I'm very suprised so dont blame me if you think im emo right now.... :GM122:
  • 0

#94 Mordi

Mordi

    Maker of Menus

  • New Member
  • 3635 posts

Posted 11 January 2008 - 06:06 PM

//locking buttons//
sc_button_active("Level 1-2","menu_levels1",false)

PS: Sweet scripts <_<

<{POST_SNAPBACK}>

Instead of "Level 1-2", put a the number of the button. For example, it could look like this:
sc_button_active(1,"menu_levels1",false)

I don't remember whether the first button is "1" or "0", but you'll figure it out, I guess.
Keep in mind that it also disappears when it is locked.
  • 0

#95 Cipher

Cipher

    GMC Member

  • New Member
  • 22 posts

Posted 11 January 2008 - 09:36 PM

Ta Mordi. These are some very good scripts! Easy (enough) to use, and they work very well. Thanks!
  • 0

#96 CaKsTeR

CaKsTeR

    GMC Member

  • New Member
  • 761 posts

Posted 15 January 2008 - 01:58 AM

thanks! I'll test it out now. If I dont edit, means it worked :(


EDIT: same error:

___________________________________________
ERROR in
action number 1
of Create Event
for object o_menu:

In script sc_menu_create:
In script sc_button_active:
Error in code at line 1:
b_active[argument0,argument1]=argument2;

at position 20: Wrong type of array index

I changed my code:

sc_button_active(1,"menu_levels1",false)

Edited by CaKsTeR, 15 January 2008 - 02:01 AM.

  • 0

#97 Dragonos

Dragonos

    Multimedia Pro

  • New Member
  • 357 posts

Posted 15 January 2008 - 02:33 AM

Is it ok if I port this to d3d?
  • 0

#98 Mordi

Mordi

    Maker of Menus

  • New Member
  • 3635 posts

Posted 16 January 2008 - 04:35 PM

Is it ok if I port this to d3d?

<{POST_SNAPBACK}>

Sure, go ahead.
  • 0

#99 a poo on toast

a poo on toast

    GMC Member

  • New Member
  • 65 posts

Posted 22 January 2008 - 10:42 PM

if the gui in my game wasnt pixel-ised i would definately use this :)

EDIT: for the keygrab thingy could i use that for passwords? if so how can i

Edited by a poo on toast, 22 January 2008 - 10:44 PM.

  • 0

#100 Mordi

Mordi

    Maker of Menus

  • New Member
  • 3635 posts

Posted 23 January 2008 - 06:47 AM

EDIT: for the keygrab thingy could i use that for passwords? if so how can i

<{POST_SNAPBACK}>

No, use the input button for that. It makes the player able to input a string. "button_add_input" or something like that...
  • 0

#101 DragonXDoom

DragonXDoom

    GMC Member

  • New Member
  • 4 posts

Posted 24 January 2008 - 09:28 AM

Sorry, two questions,
  • How do you make it show more than one menu at a time.
  • Can you show pictures on the menus? If so, how???
:)
  • 0

#102 Mordi

Mordi

    Maker of Menus

  • New Member
  • 3635 posts

Posted 25 January 2008 - 11:28 PM

Sorry, two questions,

  • How do you make it show more than one menu at a time.
  • Can you show pictures on the menus? If so, how???
:D

<{POST_SNAPBACK}>

1. That's not possible, unless you modify the scripts.
2. That would also need modifying. Unless you simply draw a picture on top of it.
  • 0

#103 lap1994

lap1994

    GMC Member

  • New Member
  • 88 posts

Posted 26 January 2008 - 12:20 AM

So... What is you think that is a "Large Menu"?
Is about five items?
Is about twenty items?
Is about 1<Think in zeros> items?
  • 0

#104 Mordi

Mordi

    Maker of Menus

  • New Member
  • 3635 posts

Posted 26 January 2008 - 02:03 PM

So... What is you think that is a "Large Menu"?
Is about five items?
Is about twenty items?
Is about 1<Think in zeros> items?

<{POST_SNAPBACK}>

You referring to "it only lags with large menus"? Well, for me it lagged with about 30-40 buttons in one menu. I have a two-year old laptop, though.
  • 0

#105 Robert3DG+

Robert3DG+

    Designer

  • GMC Member
  • 1925 posts
  • Version:GM:Studio

Posted 09 February 2008 - 08:20 AM

Wow this is brilliant Mordi!

I have an idea for update....

Do you think it would ever be possile to show a games logo (in-gmae sprite) in the place where the title bar text is?
  • 0

#106 Mordi

Mordi

    Maker of Menus

  • New Member
  • 3635 posts

Posted 09 February 2008 - 09:02 AM

Do you think it would ever be possile to show a games logo (in-gmae sprite) in the place where the title bar text is?

<{POST_SNAPBACK}>

Just replace the sprites. :GM7:
  • 0

#107 hsv88

hsv88

    GMC Member

  • New Member
  • 33 posts

Posted 25 February 2008 - 08:34 AM

I've got a problem, I wanna use this for in game menus like for shops and stuff. So how do I stop it from scrolling the background and it would be good to be able to set the height of the menu ruther then just auto-sizing

Edit: Figured out the background scrolling, I just put background_hspeed = 0, background_vspeed = 0 in the create event.
I've got one more sugestion too, button alignment (Left, centre, or right).

Cheers

Edited by hsv88, 25 February 2008 - 09:02 AM.

  • 0

#108 Archangel7x

Archangel7x

    GMC Member

  • GMC Member
  • 236 posts
  • Version:Unknown

Posted 23 March 2008 - 06:51 PM

Wow this is nice and really pro looking
  • 0

#109 nixshadow

nixshadow

    GMC Member

  • New Member
  • 36 posts

Posted 28 March 2008 - 07:30 PM

May I ask where the download link is?
I don't see it, :(
  • 0

#110 formlesstree4

formlesstree4

    GMC Member

  • New Member
  • 2 posts

Posted 29 March 2008 - 07:29 PM

After examining some html source, i found the link!!!!

http://willhostforfood.com/?Action=download&fileid=2573

Thats the original link..still good as of today ;)

might wanna fix how it shows up though...
  • 0

#111 nixshadow

nixshadow

    GMC Member

  • New Member
  • 36 posts

Posted 29 March 2008 - 08:24 PM

Thank you. ;)
  • 0

#112 Mordi

Mordi

    Maker of Menus

  • New Member
  • 3635 posts

Posted 03 May 2008 - 07:42 PM

You're welcome. -_-
  • 0

#113 Glen

Glen

    GMC Member

  • GMC Member
  • 841 posts
  • Version:GM:Studio

Posted 18 May 2008 - 02:27 AM

-edit- solved question. Tip for everyone else, When you implement it into your game... make sure you don't have an object with the name menu_font.

-edit- solved question. Didn't know you can do this:

sc_menu_add_button("Forest","{global.map=1; MenuGoto(menu_teamsize);}");



Okay, I'm going to stop asking questions, lol. This system is very easy to use and understand if you take the time to learn it and mess around with things. I'll credit you Mordi if I use it in my games.

Edited by Glen, 18 May 2008 - 07:33 PM.

  • 0

#114 rcmero

rcmero

    GMC Member

  • New Member
  • 20 posts

Posted 21 May 2008 - 10:14 AM

___________________________________________
ERROR in
action number 1
of Create Event
for object o_menu:

In script sc_menu_init:
Error in code at line 1:

(...) Hidden for being too long

at position 563: This function is only available in the Pro Edition.

Edited by rcmero, 21 May 2008 - 10:19 AM.

  • 0

#115 sparkythecat101

sparkythecat101

    GMC Member

  • New Member
  • 50 posts

Posted 29 May 2008 - 03:08 PM

hmm.. maybe you need the pro edition of gamemaker.
just maybe. :)
  • 0

#116 maxus games

maxus games

    GMC Member

  • New Member
  • 19 posts

Posted 19 June 2008 - 10:20 PM

i merged my game with the menu.
But my game run ok only and the menu run ok only but i cant merger this, helpme please
___________________________________________
COMPILATION ERROR in Script: draw_box
Error in code at line 1:
//Draws a thick outline from and x and y to an x and a y.//Script written by Mordi// - draw_box(x1, y1, x2, y2, scale, alpha_back, alpha_outline, animated?, title)var x1, y1, x2, y2, a, sc, col, col2, sc, w, h, anim, shine, i, title;x1 = argument0;y1 = argument1;x2 = argument2;y2 = argument3;col = b_col3col2 = b_col1sc = argument4;a1 = argument5;a2 = argument6;anim = argument7;shine = true;title = string(argument8);if (m_anim = false) { anim = false; }//Width and height:w = x2-x1;h = y2-y1;//Draw title string with box:if title!=""{ var tw, th, tx, ty; tx = (x1+x2)/2; ty = y1-2; tw = string_width(title)*sc+(5*sc); th = string_height(title)*sc+(10*sc); //Middle draw_sprite_ext(s_box, 0, tx-tw/2+(1*sc), ty-th+(1*sc), tw, th, 0, col, a1) //Upper left corner: draw_sprite_ext(s_boxcorner1, box_outl, tx-tw/2, ty-th, sc, sc, 0, col, a2) //Top: draw_sprite_ext(s_boxside_light, box_outl, tx+tw/2, ty-th, sc, tw, 270, col, a2) //Upper right corner: draw_sprite_ext(s_boxcorner2, box_outl, tx+tw/2+(2*sc), ty-th, -sc, sc, 0, col, a2) //Right: draw_sprite_ext(s_boxside_dark, box_outl, tx+tw/2+(1*sc), ty, sc, th+(1*sc), 180, col, a2) //Left: draw_sprite_ext(s_boxside_light, box_outl, tx-tw/2, ty-th+(1*sc), sc, th, 0, col, a2) if (tw>w) { //Lower left corner: draw_sprite_ext(s_boxcorner4, box_outl, tx-tw/2, ty+(2*sc), sc, -sc, 0, col, a2) //Lower right corner: draw_sprite_ext(s_boxcorner3, box_outl, tx+tw/2+(2*sc), ty+(2*sc), -sc, -sc, 0, col, a2) //Bottom (Left): draw_sprite_ext(s_boxside_dark, box_outl, tx-tw/2+(1*sc), ty+(1*sc), sc, (tw-w)/2, 90, col, a2) //Bottom (Right): draw_sprite_ext(s_boxside_dark, box_outl, tx+tw/2+(1*sc), ty+(1*sc), sc, -(tw-w)/2, 90, col, a2) } //Shadow if (box_shadow > 0) { var ssc; if th>400 { ssc = 1 } else { ssc = th/400 } draw_sprite_ext(s_box_shadow, 0, tx-tw/2+(1*sc), ty-th+(1*sc)+th, tw, -ssc, 0, col, box_shadow*a1) } //Gloss if (box_gloss > 0) { var gsc; gsc = 1; if th<50 { gsc = th/50 } draw_sprite_ext(s_box_gloss, 0, tx+(1*sc), ty-th+(1*sc), tw/397, gsc, 0, c_white, box_gloss*a1) } var shysc, shxsc; if (th<300) { shysc = th/300 } else { shysc = 1 } if (tw<300) { shxsc = tw/300 } else { shxsc = 1 } draw_sprite_ext(s_box_shine_side, box_outl, tx-tw/2-(8*sc), ty-th, sc, shysc, 0, c_white, a2); draw_sprite_ext(s_box_shine_corner, box_outl, tx-tw/2-(1*sc), ty-th-(1*sc), sc, sc, 0, c_white, a2); draw_sprite_ext(s_box_shine_side, box_outl, tx-tw/2, ty-th-(7*sc), sc, shxsc, 90, c_white, a2);

at position 237: Variable name expected.
__________________________________________________

Edited by maxus games, 19 June 2008 - 10:21 PM.

  • 0

#117 zbox

zbox

    GMC Member

  • GMC:Member
  • 1474 posts
  • Version:Unknown

Posted 21 June 2008 - 06:01 AM

Umm, will host for food is down!
But it looks good

#118 zbox

zbox

    GMC Member

  • GMC:Member
  • 1474 posts
  • Version:Unknown

Posted 23 June 2008 - 05:59 AM

Opp, back up again :huh:
This is really good, 100/10!
~zbox

#119 J.S.Maker

J.S.Maker

    GMC Member

  • New Member
  • 16 posts

Posted 26 July 2008 - 06:22 PM

One question: in a commercial game, Should I pay something to you, Mordi?
  • 0

#120 Mordi

Mordi

    Maker of Menus

  • New Member
  • 3635 posts

Posted 26 July 2008 - 07:14 PM

One question: in a commercial game, Should I pay something to you, Mordi?

Just mention me in your game. Dont put me as "Menu made by Mordi", though, since I only made the engine behind it. Many people have done this "mistake".
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users