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

КОМЕНТАРІ • 31

  • @blenderEvd
    @blenderEvd 7 років тому +2

    Thanks! I wanted lesson like this for many time

  • @TheGrandMasterFunk
    @TheGrandMasterFunk 7 років тому +9

    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!!

    • @SlasherXGAMES
      @SlasherXGAMES  7 років тому +1

      You're more than welcome. I look forward to seeing your game in action :)

  • @rolanmorla3969
    @rolanmorla3969 6 років тому +1

    what code should I place to take action by pressing "Item2 three".
    like for example game_end ()

  • @grandjae
    @grandjae 7 років тому

    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

  • @marsellusbrel
    @marsellusbrel 3 роки тому

    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

  • @animanoir
    @animanoir 7 років тому +1

    but how can I make the program know which box is selected and apply the changes that are specific from the selected item?

    • @drew21t
      @drew21t 7 років тому

      use a switch statement, that would probably be the best way.

  • @creepyhobo1015
    @creepyhobo1015 6 років тому

    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

    • @paradoxwjs5578
      @paradoxwjs5578 6 років тому

      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)

  • @larryteslaspacexboringlawr739
    @larryteslaspacexboringlawr739 8 років тому

    thank you for gamemaker tutorial

  • @joeofbubba
    @joeofbubba 7 років тому +1

    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

  • @GakuseiChatto
    @GakuseiChatto 7 років тому

    good one men!

  • @autobahn24
    @autobahn24 7 років тому +1

    What is when you not destroy the ds list?

    • @SlasherXGAMES
      @SlasherXGAMES  7 років тому

      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.

    • @autobahn24
      @autobahn24 7 років тому

      ok thanks!

  • @BadGuysWorkshop
    @BadGuysWorkshop 8 років тому

    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.

    • @SlasherXGAMES
      @SlasherXGAMES  8 років тому

      Thanks for the heads-up. Check the video description for a project file with minor improvements :)

    • @SlasherXGAMES
      @SlasherXGAMES  8 років тому

      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.

    • @BadGuysWorkshop
      @BadGuysWorkshop 8 років тому

      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.

    • @SlasherXGAMES
      @SlasherXGAMES  8 років тому

      Check the project file for an improved solution :)

    • @BadGuysWorkshop
      @BadGuysWorkshop 8 років тому

      Alright.

  • @ethanrieschiek6603
    @ethanrieschiek6603 5 років тому

    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?

    • @mixproductions628
      @mixproductions628 4 роки тому

      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