Get Element Earth ▶
Support This Channel ▶

Follow me on Facebook ▶
Follow me on Instagram ▶
Follow me on Twitter ▶
Follow me on Google+ ▶

In this tutorial I’ll show you how to add menus to your game.

Now check out the more in-depth version ▶

▼ Useful Links and Resources ▼
Like menus? Now try text input/output ▶

Quick tip ▶ If you don’t want a custom cursor though, you can replace obj_cursor.x with mouse_x and obj_cursor.y with mouse_y.

▼ More ▼
General Game Maker Playlist ▶
Game Maker Networking ▶

Happy Coding 😀

Nguồn: https://shaarique.com/

Xem thêm bài viết khác: https://shaarique.com/game/

22 Comments

GravityShift Games

June 28, 2020

Be sure to subscribe for more great videos https://www.youtube.com/channel/UCAumdO1yv-di4fI6IZQIy3Q?sub_confirmation=1

Reply

Wownime

June 28, 2020

I published two games on Google Play made in Game Maker. They are simple but I kicked off:
  https://play.google.com/store/apps/dev?id=7809129067791821349

Reply

WindowsEcksPee

June 28, 2020

Yesss!

Reply

Teehee Joker

June 28, 2020

My mouse is like 30cm away from the mouse and it doesn’t move out

Reply

Shigurizu Chan

June 28, 2020

I am using a new version of GM and can't find the "not to display the cursor" buttom :c.

Reply

Shigurizu Chan

June 28, 2020

Excuse me, sir. I am making a videogame with other person, but we can't find a programmer. We already have most of the art, music and script, but without a programmer we will not finish the demo for October (and we need to do it). Could you please, please help us?

Reply

medo abdo

June 28, 2020

i want make a chat in a game in game maker pro 8.0 but there is a mistake in addlines you can help me ? ! you are so pro 😉 i want the you to help me

Reply

Kaboom Animations

June 28, 2020

thank you!!!

Reply

Psyduckgineer

June 28, 2020

Thanks for the tutorial, even though my game is keyboard based, but the one problem I'm encountering is when I return to the main menu, the music playing stacks over itself. Is there a way to fix it while keeping the music playing?

Reply

koffe

June 28, 2020

listen at 10:58 …. you can hear a very thick Indian accent poking through LOL!! "TH-RA-EE"

Reply

SmokeyBBQ

June 28, 2020

HELP ME PLEASE
———————————————————————————————-
here is my code
image_speed = 0;
if (position_meeting(obj_mouse.x, obj_mouse.y, self))
{
image_index = 1;
}
else
{
image_index = 0;
}
———————————————————————————————-
error

_________________________________________
############################################################################################
FATAL ERROR in
action number 1
of Step Event0
for object obj_fight:

Unable to find any instance for object index '0' name 'obj_mouse'
at gml_Script_scr_mouse_hover (line 2) – if (position_meeting(obj_mouse.x, obj_mouse.y, self))
############################################################################################
——————————————————————————————–
stack frame is
gml_Script_scr_mouse_hover (line 2)
called from – gml_Object_obj_fight_StepNormalEvent_1 (line 1) – scr_mouse_hover();

Reply

No commentary videos // Kory Playing

June 28, 2020

13:14

Reply

RubyredDragonsword 97

June 28, 2020

So my question is, we would use this same logic for, say, like a glitter effect, as well? Would I just use different sprites or something?
Sorry if this sounds stupid or anything-

Reply

konstantin veljanovski

June 28, 2020

_________________________________________
###########################################################################################
FATAL ERROR in
action number 1
of Step Event1
for object obj_Curser:

Variable obj_Curser.Mouse_y(100002, -2147483648) not set before reading it.
at gml_Object_obj_Curser_StepBeginEvent_1 (line 1) – action_move_to( Mouse_x, Mouse_y );
###########################################################################################

Reply

Senpai Chan

June 28, 2020

do u have the project file for this?

Reply

CD MOMENTS

June 28, 2020

dude i dont have any of the photos how do i get them

Reply

Pingo The Gamer

June 28, 2020

I've revised your code.

Do this in the step event to create a button.
That'll save a lot of your time.

if (position_meeting(mouse_x,mouse_y,id))
{
image_index = 1;
if (mouse_check_button_pressed(mb_left))
{
//Do whatever you want
}
}
else
{
image_index = 0;

}

Reply

Every Thing Top 10

June 28, 2020

Hey bro can I get the full code for the mouse hover its not working for me

Reply

Sabine Haasnoot

June 28, 2020

THANK YOU SO MUCH I!!!!!!

Reply

Dave Wright

June 28, 2020

you should include a download link for the menu buttons. Just want to test it all before making all the buttons

Reply

thetorturedgamer

June 28, 2020

hey slasher how about you call game maker and set up a price per part algorithm for the game maker process now you can say it is just an estimator for the price of patenting your game but we really need this out here for our dreams. and of course a scripting software that is automatic so we can patent the story lines of non open world games and it would help to know how much it is for each component that game maker lets you use or are those items open source and free. i need to know. help. if you could right the story first use the easy scripting software just for game making it would save a lot of time. then you just add as much scenery as you can afford. please help.

Reply

Red Imperialist

June 28, 2020

When I hover the cursor over the buttons the cursor goes under not over the buttons anyone know why?

Reply

Leave a Reply