Let’s create a dropdown menu.
Get Element Earth ▶
Try Element Earth Demo ▶
Support This Channel ▶
▼ Social ▼
Follow me on Facebook ▶
Follow me on Instagram ▶
Follow me on Twitter ▶
Follow me on Google+ ▶
▼ Useful Links and Resources ▼
GM Studio Project ▶
GM Studio Project Improved ▶
▼ More ▼
General GameMaker Playlist ▶
GameMaker Networking ▶
Happy Coding 😀
Nguồn: https://shaarique.com/
Xem thêm bài viết khác: https://shaarique.com/game/
Ethan Rieschiek
June 29, 2020i keep getting this error…
_________________________________________
FATAL ERROR in
action number 1
of Create Event
for object obj_menu:
COMPILATION ERROR in code action
Error in code at line 2:
ds_list_add(myList,"ONE","TWO","THREE","FOUR");
^
at position 47: Wrong number of arguments to function or script.
Any idea what I'm doing wrong?
Rolan Morla
June 29, 2020what code should I place to take action by pressing "Item2 three".
like for example game_end ()
suprise
June 29, 2020############################################################################################
FATAL ERROR in
action number 1
of Draw Event
for object obj_racemenu:
Variable obj_racemenu.fnt_main(100026, -2147483648) not set before reading it.
at gml_Object_obj_racemenu_DrawEvent_1 (line 3) – draw_set_font(fnt_main);
############################################################################################
doesn't recognize fnt_main as a valid font?
GeoDozerGuy
June 29, 2020_________________________________________
############################################################################################
FATAL ERROR in
action number 1
of Mouse Event for Glob Left Pressed
for object obj_menu:
Variable obj_menu.image(100004, -2147483648) not set before reading it.
at gml_Object_obj_menu_GlobalLeftButtonPressed_1 (line 11) – image.text = ds_list_find_value(myList, i);
############################################################################################
help me pls
CreepyHobo101
June 29, 2020I am following this tutorial in hopes to make a drop down menu that could lead uou to a different room (example if you click on one of the options you get sent to another room (room_goto(rm_example); ) IS there any way to make this change in the code? I am having trouble finding a way
Autobahn24
June 29, 2020What is when you not destroy the ds list?
ethereal flux
June 29, 2020but how can I make the program know which box is selected and apply the changes that are specific from the selected item?
GreenLight In Flowmotion
June 29, 2020hi love your tutorial I have a question? my problem is that am trying to figure out what it call when the player clear the level for example player beat final enemy I want the player to do a victory pose while it show Exp points received and stats like in the in of a battle in final fantasy or tale of games can you point me in the right direction thx
Joe Williams
June 29, 2020Good tutorial, But a real drop box is a lot harder. This is also a little hard coded so you dont have much room for other menus whne you want to perform certain task. This seems like it would only allow you to have one
GakuseiChatto
June 29, 2020good one men!
TheGrandMasterFunk
June 29, 2020High quality content man, I could make a profitable game just by copy pasting your tutorials together… Trust me I'm half way there!
Just kidding, but I'm teaching myself how to make a little incremental clicker game and your tutorials are always top quality! Thanks man!!
blenderEvd
June 29, 2020Thanks! I wanted lesson like this for many time
Lexafon
June 29, 2020Another Fantastic Vid, I found this was very complimentary with the changing resolutions video you did recently with only a couple of slight modifications 🙂
MAIN MENU OBJECT
-CREATE-ds_list_add(resolutionList,1920,1080,1600,900,1400,1050,1366,768,1280,720,1024,768,800,480);
-LEFT PRESS-for (var i = 0; i < ds_list_size(resolutionList); i +=2){ //every other array value
var menuItem = instance_create(x,yy, oResolutionMenuItem);
menuItem.textOne = ds_list_find_value(resolutionList,i) // width
menuItem.textTwo = ds_list_find_value(resolutionList,i+1) // height
menuItem.owner = id; // this is the link between this menu item and the menu
yy += yIncrement-2;
}
-DRAW-if textTwo == "" {
draw_text(x,y – sh, string(textOne));
} else {
draw_text(x,y – sh, string(textOne) + " x " + string(textTwo));
}
MENU ITEM
-LEFT PRESS-var width = textOne;
var height = textTwo;
ini_open("game_settings.ini");
ini_write_real("settings", "width", width);
ini_write_real("settings", "height", height);
ini_close();
global.displayWidth = width;
global.displayHeight = height;
ScreenResolution();
-DRAW-draw_text(x,y – sh, string(textOne) + " x " + string(textTwo));
Larry tesla spacex boring Lawrence
June 29, 2020thank you for gamemaker tutorial
Bad Guy's productions
June 29, 2020There's probably going to be a problem if you make more than one of these menus in room, but it is a nice example.