GameMaker Studio - Dropdown Menu Component
Вставка
- Опубліковано 12 вер 2016
- Let's create a dropdown menu.
Get Element Earth ▶ tinyurl.com/hgadglg
Try Element Earth Demo ▶ tinyurl.com/hodcnvl
Support This Channel ▶ tinyurl.com/jetb43t
▼ Social ▼
Follow me on Facebook ▶ tinyurl.com/opjtvq4
Follow me on Instagram ▶ / jp_damstra
Follow me on Twitter ▶ / gshiftgames
Follow me on Google+ ▶ plus.google.com/+SlasherXGAMES
▼ Useful Links and Resources ▼
GM Studio Project ▶ tinyurl.com/h5ouk92
GM Studio Project Improved ▶ tinyurl.com/hc4g8oq
▼ More ▼
General GameMaker Playlist ▶ tinyurl.com/omg4xxs
GameMaker Networking ▶ tinyurl.com/oauqu5y
Happy Coding :D
Thanks! I wanted lesson like this for many time
High 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!!
You're more than welcome. I look forward to seeing your game in action :)
what code should I place to take action by pressing "Item2 three".
like for example game_end ()
hi 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
I really liked your method, but, if i'm making a menu where stuff never changes, would it be better if I use arrays? I not sure if i'm missing something else
but how can I make the program know which box is selected and apply the changes that are specific from the selected item?
use a switch statement, that would probably be the best way.
I 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
in the create event of the menuItem put another variable called action and set action the same way you set the name. Then when clicked do script_execute(action)
thank you for gamemaker tutorial
Good 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
good one men!
Thanks for watching :)
What is when you not destroy the ds list?
You'll end up with a memory leak. Basically the memory set aside for the ds_list will never be freed. Too much of this can lead to your game consuming too many system resources and end in a terrible experience for your player. Try free up memory wherever possible.
ok thanks!
There's probably going to be a problem if you make more than one of these menus in room, but it is a nice example.
Thanks for the heads-up. Check the video description for a project file with minor improvements :)
One could always create a controller object that handles the creation of several dropdown menus on room create. This controller object could then feed the various different lists into the menus on their creation.
SlasherXGAMES ™ But there's still going to be a problem with using "with(object)". I usually avoid that by setting a master variable to every child object.
Check the project file for an improved solution :)
Alright.
i 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?
you are most likely using a version of game maker that does not allow multiple values. you can easily get around this by copy and pasting ds_list_add and then change the value for each individual one