How To Create A Simple Main Menu In Godot!

Поділитися
Вставка
  • Опубліковано 26 жов 2024

КОМЕНТАРІ • 79

  • @bananapeelonhead
    @bananapeelonhead Рік тому +23

    I appreciate all these little tips like holding ctrl when dropping a node, that's incredibly useful! Awesome video :D

  • @StephenHermer
    @StephenHermer Рік тому +10

    Thank you for these tutorials! I am just learning Godot, and it is incredibly helpful!

  • @FernandoMahave
    @FernandoMahave Рік тому +3

    Thanks for the video! I've been trying a few others before but, as a beginner, I ended up feeling frustrated because I found them either overwhelming or monotonous, all in all hard to follow. I found your style clear, manageable and engaging. I'll return for more, for sure.

  • @Plazaify
    @Plazaify 10 місяців тому +4

    I honestly didn't know this before looking at this tutorial but Parallax Layers work with TextureRect's too. I wanted to make a scrolling background and Parallax Layers are the only way I knew how to do that so I tried it out and it works perfectly!

  • @monsieurscarabee2960
    @monsieurscarabee2960 4 місяці тому +1

    Thank you so much !! I'm a complete beginner + i'm terrible at coding. I get lost very easily, but thanks to you i made my first main menu, it works perfectly well, i'm so proud ! Thank you again for your tutorial, it really helped and made me happy today :)

  • @hawkgamedev
    @hawkgamedev 9 місяців тому +1

    Thanks for this super useful video, just got a new loyal fan, thanks for your efforts your knowledge is appreciated!

  • @Robotech8414
    @Robotech8414 9 місяців тому +1

    This is awesome. Thank you, I love the Design. So Clean

  • @senlee325
    @senlee325 Місяць тому

    Thank you! After much tweaking due to Godot 4, I was able to get my main menu working..

  • @godsavitar8504
    @godsavitar8504 Місяць тому

    Great video for a newbie like me lol. Nice simple tutorial with explanations and tips along the way, gained my sub. Thank you!

  • @asuuusu
    @asuuusu 3 місяці тому +4

    YOU RE THE BEEEST all other tutorials dosen't work but yours is so well explained

  • @joaquinesquivel85
    @joaquinesquivel85 10 місяців тому +3

    Great tutorial, what is the difference between your method to connect buttons and doing double click the signal and the creating the function automatically

  • @GameDev_YT
    @GameDev_YT 9 місяців тому +1

    Thanks a lot! Was very easy to understand and follow along, you saved my gamejam!

  • @ethanpoegamerpoe9346
    @ethanpoegamerpoe9346 2 місяці тому +3

    it says I need to add a variable after the void: part?

  • @Crits-Crafts
    @Crits-Crafts 5 місяців тому +4

    I like big buttons and I cannot lie

  • @therealcherrypapa
    @therealcherrypapa 4 місяці тому

    thanks for showing me how to get great alignment with my fonts this is great.

  • @musiccommands8615
    @musiccommands8615 5 місяців тому

    This was amazing and very straight forward. Thank you so much!

  • @BazSupport
    @BazSupport Рік тому +2

    Can you cover making menus input friendly with using either controller (or wads/arrows) and keyboard?

    • @CoffeeCrowDev
      @CoffeeCrowDev  Рік тому +2

      Ofcourse! When we start polishing the menu will add some hotkey functionality so we can switch between the tabs using, WASD, ARROWS and controller buttons!

  • @marumisu9560
    @marumisu9560 3 місяці тому

    In Unity I remember making individual scripts for each button. Maybe in Unity you can put everything in one script like this but this is very interesting.

  • @theaussieninja8176
    @theaussieninja8176 Рік тому +2

    thank you perfect tutorial for what i need

  • @ssihanji6802
    @ssihanji6802 2 місяці тому +2

    What if I want the button to have a custom background? :D
    Great tutorial btw.

  • @GustavoFernandesKing
    @GustavoFernandesKing 8 місяців тому +1

    Thank you! I'm starting to learn Godot (and programming in general) and I was following a tutorial but the guy never bothered to align the main menu and it was driving me nuts! (the video was good tho)

  • @pangln
    @pangln 10 місяців тому +1

    what if the background i'd like to use is meant to be animated?

  • @AliceMadTeaParty
    @AliceMadTeaParty Рік тому +1

    Is there a tutorial for sound output, resolution, multilingual support, and key mapping in the menu settings?

    • @CoffeeCrowDev
      @CoffeeCrowDev  Рік тому +1

      They are definitely coming in the future!
      Because of how they function as their own unique scenes that will get loaded via a button onto the menu and the scripts that go into them they can take a little while to set up.

  • @Cocheeze
    @Cocheeze 13 днів тому

    holding ctrl when dropping a node = boss level

  • @flamingsteve5883
    @flamingsteve5883 9 місяців тому

    if you have a texture for your main menu with the buttons already in place you can just cut out the margin container and just put the buttons in

  • @ves5657
    @ves5657 4 місяці тому

    I thought according to GDscript's naming conventions for naming nodes you should use Pascal Case, which doesn't use underscores?

  • @excelucate
    @excelucate 7 місяців тому +1

    This is fantastic, very well explained, not rushed and easy to follow.
    Help please: Whilst i have triple checked everything i cannot get the on start button to jump to my next screen ("res://Scenes/Level 1/level-1.tscn").
    The only things i can see that are different are 1) "void" has red text in your video but mine is bright green, but that cannot be the issue (i have removed void and no difference).
    2) my next screen is a "texturerect" static screen with no game code, would that be the problem?
    Using 4.2.1
    Thanking you in advance.

    • @Chris_84
      @Chris_84 5 місяців тому +1

      Yeah im having the same issue

    • @Chris_84
      @Chris_84 5 місяців тому

      Updated: I found an awesome video that adds 2 little bits of code that fix everything seriously if your stuck man go to his 5 mintue video fixed my options exit and start button with no joke 6 lines of code in 4 minutes all together this is his video search him up godot 4 main menu beginner tutorial by Gwizz

  • @NatiiixLP
    @NatiiixLP 2 місяці тому +3

    It's a very useful video, but, holy moly, man, your naming conventions gave me a stroke in the first minute.
    How do you use Pascal_Snake_Case AND put spaces in your directory names? That's so criminally cursed, lol. 💀
    Also, 14:00, for the love of god, please don't name a handler for a `button_down` signal as `*_pressed` when there is a _different_ signal on that type called `pressed`. That will make for one hell of a debugging nightmare when you refactor something and you'll be trying to understand why the `*_pressed` handler isn't being called when the `pressed` signal is firing.

  • @cryelectric
    @cryelectric Рік тому

    Incredible tutorial. Thank you.

  • @5kunk157h35h17
    @5kunk157h35h17 3 місяці тому

    Very useful. Thank you!

  • @LGderEinzigWahre
    @LGderEinzigWahre 4 місяці тому

    thanks! very nice voice to listen to!

  • @neontgaming
    @neontgaming 4 місяці тому

    The menu looks super great but I was just wondering if it also works for 3d games?

  • @Coolkid22543
    @Coolkid22543 4 місяці тому +1

    the exit did not work

  • @TheRealKaiProton
    @TheRealKaiProton Рік тому

    that was great,
    Id be temped to link the buttons to the Same Function, and pass an argument to a match statement to move or exit,

    • @CoffeeCrowDev
      @CoffeeCrowDev  Рік тому +1

      Thank you!
      Thats a great idea, one of the best parts about the simplicity of this design is you'll be able to modify it so take some time to experiment with it and make it into your own!

  • @pretzeIstick
    @pretzeIstick 4 місяці тому

    hi! i have a question.. why is there code for start level preload? is it the same thing as creating a save/load file for a scene?

  • @NoWaterJustIce
    @NoWaterJustIce 5 місяців тому

    Thank You!!! this video was incredibly helpful. I did have one question though. The buttons work when i enter my main menu, but when I leave and come back to it (such as when the character loses the game and has to come back to the main menu) the buttons no longer work? I think it has to do with the ready function not being called the second time, but I dont know how to fix this.

    • @NoWaterJustIce
      @NoWaterJustIce 5 місяців тому

      ended up finding a solution (for my game at least) and figured I would post it back here in case anyone else is having an issue. for me I just had to change all instances of preload() -> load(). Not 100% sure why it works but the person assisting me said it was solving a cyclical error from trying to preload the main menu after it had already been loaded.

  • @buizelmeme6288
    @buizelmeme6288 7 місяців тому +10

    Infuriating that changing the font size and style is not the same way as I would did it in Microsoft PowerPoint

  • @Omargaming-2010
    @Omargaming-2010 4 місяці тому +2

    15:15 this doesnt work for me for some reason

    • @jamiebeattie4909
      @jamiebeattie4909 Місяць тому +1

      Yep had the same issue mate. Did you get a fix?

  • @g8773tt
    @g8773tt 6 місяців тому

    idk why but my exit button works but not my start button any ideas?

  • @PragyanKumar-wj6lu
    @PragyanKumar-wj6lu 4 місяці тому

    Thankyou your video was very helpful :)

  • @Cordsi_Games
    @Cordsi_Games 5 місяців тому

    love u channel bro just started my first game so. do you got a video where like for music sounds how to have menu music and then it turns off after clicking play and then another music plays. only issue rn i have it like an audio area with 3 bus things and i follow a video and i had to redo something so it stuffed it up idk if should try to redo it again

  • @sinsamuhamad
    @sinsamuhamad 5 місяців тому

    can i do this using video or gif instead of jpeg for the background?

  • @2welveontop317
    @2welveontop317 10 місяців тому

    When I try to move the label for the title, no matter what I change the vertical or horizontal alignments, it just won't move.

    • @CoffeeCrowDev
      @CoffeeCrowDev  10 місяців тому

      9 times out of 10 thats because of the node that it has as a parent. UI can be a bit finicky with how the nodes are set up, you may have to adjust how the parent is set up to change the position of the title.

    • @obiarne
      @obiarne 9 місяців тому

      I think I know what you mean; Don't move the label yourself. Make sure that MarginContainer is hooked on "whole screen" first with the anchor button. That should fix it.

  • @PHHSBeatdowns
    @PHHSBeatdowns 9 місяців тому

    Thank you sir for this tutorial.

  • @-LightSmit
    @-LightSmit 4 місяці тому

    Really appreciate it!

  • @chocolatecake50000
    @chocolatecake50000 3 місяці тому

    Thank you this is so helpful

  • @clintonweir1919
    @clintonweir1919 7 місяців тому

    When I switch scenes I cant reuse the button. What do I do?

  • @stoaden
    @stoaden 3 місяці тому

    this was helpful ^^

  • @Bogdan-Dode
    @Bogdan-Dode 10 місяців тому

    Nice tutorial
    Can you do a Multiresolution mobile menu with touch controls ?

  • @cofa4011
    @cofa4011 11 місяців тому

    Heyy great tutorial, thanks ! Hope your channel will grow fast ;) It sure will if you make good content. I subscibed.

  • @SohanPlayzz08
    @SohanPlayzz08 3 місяці тому

    if im making a 3d game and scene will it owrk in that ?

    • @CoffeeCrowDev
      @CoffeeCrowDev  3 місяці тому

      Great question! Yes it will work with any kind of game, most ui / control elements are 2D and are rendered on a canvass layer which sits on top of whatever style of game you are making!

    • @SohanPlayzz08
      @SohanPlayzz08 3 місяці тому

      @@CoffeeCrowDev My buttons are clikable without the canvas layer so if i do the same with control node and a 3d background with animation and i add a node to world as control node and do this all steps will it work ?

  • @Player-o9u
    @Player-o9u 4 місяці тому

    thanks you dude!

  • @rvltadam
    @rvltadam 4 місяці тому

    thank you

  • @MKzing
    @MKzing 4 місяці тому

    Thanks!

  • @TASTEVIBES
    @TASTEVIBES 6 місяців тому

    thank youuuu❤❤

  • @QuanNguyen-cr7
    @QuanNguyen-cr7 5 місяців тому

    nice thank u

  • @alonnamir1014
    @alonnamir1014 6 місяців тому +1

    Am I the only one who hit f5 when he said hit f5?

  • @watermelon0_
    @watermelon0_ 7 місяців тому

    YOU HAVE OWNED MY RESPICT

  • @TheGreatBackUpVIDEOS
    @TheGreatBackUpVIDEOS 4 місяці тому

    I am confused what's wrong with my game.
    Is this tutorial out of date, or is there a formatting error here?
    class_name MainMenu
    extends Control
    @onready var start_button = $MarginContainer/HBoxContainer/VBoxContainer/Start_button as Button
    @onready var quit_button = $MarginContainer/HBoxContainer/VBoxContainer/Quit_button as Button
    @onready var kir_button = $MarginContainer/HBoxContainer/VBoxContainer/kir_button as Button
    @onready var start_level = preload("res://Scenes/Test menu/Foggy_Void.tscn") as PackedScene
    func _ready():
    start_button.button_down.connect(on_start_pressed)
    kir_button.button.down.connect(on_kir_pressed)
    quit_button.button.down.connect(on_quit_pressed)
    func on_start_down() -> void:
    get_tree().change_scene_to_packed(start_level)
    func on_kir_pressed() -> void:
    pass
    func on_quit_pressed() -> void:
    get_tree().quit()
    kir is just "options" btw, so ignore that.
    I get an error about "on_start_pressed"
    The only thing I can tell that is different is the little arrow at the start of the line for you. (The blue up and to the right thing, Idk)
    Edit: Turns out that there's a thing on the Godot store you can just straight up steal for your projects so I just did that instead.
    I'd still like to know why it wasn't working, but at least I can pretend it is no longer a problem for now.
    I see the next video in the playlist is on settings, and another was about accessibility.
    Does that include languages?
    I know some people consider translation stuff to be an accessibility feature, and some people treat it like its own special setting, so I'd like to know before I spend several minutes watching a tutorial not aimed at me.

    • @bezztube-gaming
      @bezztube-gaming 4 місяці тому

      I think "on_start_pressed" was not declared in this script, you declared "on_start_down". Sorry for bad english

    • @TheGreatBackUpVIDEOS
      @TheGreatBackUpVIDEOS 4 місяці тому

      @@bezztube-gaming Ah, you're right!
      Thank you so much for pointing out my stupidity