13 Godot Engine HACKS You Didn't Know

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ธ.ค. 2024

ความคิดเห็น • 62

  • @stayathomedev
    @stayathomedev  ปีที่แล้ว +3

    Have any tips and tricks for the Godot Engine of your own? Let me know in the comments and I'll include it in another video!
    🌐 StayAtHomeDev.com - stayathomedev.com/tutorials/single-plane-water-shader?
    Text version: stayathomedev.com/tutorials/13-godot-engine-tricks-to-speed-up-game-dev?

  • @AlfredBaudischCreations
    @AlfredBaudischCreations ปีที่แล้ว +59

    Godot 4 only:
    - Trick 14: Holding Alt+clicking in the Script editor will add additional cursors
    - Trick 15: Pressing CTRL+D in the script editor will highlight the word under cursor, if you press CTRL+D again it will keep highlighting and creating cursors for the next occurrences - insanely useful for refactoring or quick searches (I implemented this :P)
    - Trick 16: Select anything in the Script editor, then press CTRL+D to highlight and create a cursor for the next occurrences of the selection - almost the same as above, but for arbitrary length selections not only word under cursor. (I also implemented this one)

    • @stayathomedev
      @stayathomedev  ปีที่แล้ว +8

      That's awesome! Great additions

    • @mrmoinn
      @mrmoinn ปีที่แล้ว +4

      Super grateful to you for adding this. It was sorely missed coming from VS Code to the Godot Engine.

    • @question_mark
      @question_mark ปีที่แล้ว +7

      you jut don't know how much you're a hero to my eyes xD i litteraly full spam ctrl+D when i code
      thank you so much

    • @Muphet
      @Muphet ปีที่แล้ว

      That's pretty much every editor not just godot

    • @sussybaka2020
      @sussybaka2020 3 หลายเดือนก่อน

      @@mrmoinn a
      wwwwww ccockc!!!!

  • @Vendetta8247
    @Vendetta8247 ปีที่แล้ว +9

    2023 is indeed the year of godot, good catch XD

  • @KaptainMicila
    @KaptainMicila ปีที่แล้ว +20

    I'll add some more info about strict typing (tip #1):
    Do you see the line numbers on the left and wondered why some were highlighted and others weren't? It's because Godot can't infer (understand) the type of one or more variables inside that line and you'll receive worse autocomplete because of that!
    Godot 4 also gives massive performance benefits for correctly typed code.
    To wrap it up: if you're on either Godot 3 or 4 make sure (at least try, as it's not always possible) to make these line numbers become bright: it's always worth it!

    • @stayathomedev
      @stayathomedev  ปีที่แล้ว +1

      Awesome info! The performance boost was something neglected to mention. Thanks for adding to it!

  • @hotworlds
    @hotworlds ปีที่แล้ว +11

    Something I didn't realize about color, there are a bunch of pre-defined constants for common colors. If you type "Color." (add the period) and start typing the name of a color, it will open a list of suggestions to auto-complete, and shows a swatch so you can tell what 'salmon' is. Very fast way to grab a color if you just want to test stuff!

  • @FirebelleyGames
    @FirebelleyGames ปีที่แล้ว +4

    Great tips! I consider myself a Godot veteran and didn't know about quite a few of these. This engine keeps surprising :)

    • @stayathomedev
      @stayathomedev  ปีที่แล้ว

      Nice! Yeah, it's always the little shortcuts that are hardest to learn about.

  • @SDGGames
    @SDGGames ปีที่แล้ว +3

    Nice list! I only knew about half of these
    I just bookmarked this video so I can re-watch it at the end of each day for the next week or so until I get used to using these in my workflow 🙂

  • @Crits-Crafts
    @Crits-Crafts หลายเดือนก่อน

    that pick colour hint has made my life so much easier...

  • @Blackmamba136
    @Blackmamba136 ปีที่แล้ว

    There are so many good tips!
    Gamechanging, thank you

  • @gokhankalender7200
    @gokhankalender7200 4 หลายเดือนก่อน

    Saul Goodman dubbing Godot Hack videos. Well done.

  • @shireikanguenki7153
    @shireikanguenki7153 ปีที่แล้ว +3

    As I’ve watched a lot of Godot Tips and Tricks lately, I did really expect that I might know all these stuff.
    But MANNNN was I so wrong!!! Those are tons of amazing tips, and I’m absolutely love your content! That’s really great work! Really glad that I found out this channel! Subscribe! 😊😊😊

    • @stayathomedev
      @stayathomedev  ปีที่แล้ว

      Wow! That's great! Thanks for watching and don't hesitate to plug any tips I missed in this one.

  • @igorgiuseppe1862
    @igorgiuseppe1862 ปีที่แล้ว +3

    it took me years to realize that i can drag n drop images from my file sytem to the engine filesystem to import then, from the engine filesystem to an sprite to use it as texture, or direct to the screen (from the OS or the engine filesystem) to add it to the screen as an imported image...

    • @stayathomedev
      @stayathomedev  ปีที่แล้ว +1

      I agree that the importing and moving of external files is pretty painless. Intuitiveness cannot be overlooked.

  • @deerdev6511
    @deerdev6511 ปีที่แล้ว +1

    This is so useful, thank you lost, have a great day!

  • @question_mark
    @question_mark ปีที่แล้ว +2

    bro thank you sooooooooooooooooooooo much

  • @thedevm4n
    @thedevm4n ปีที่แล้ว +1

    Thanks do much man so many useful tips

    • @stayathomedev
      @stayathomedev  ปีที่แล้ว

      No problem! Thanks for watching!

  • @SleepDepJoel15
    @SleepDepJoel15 ปีที่แล้ว +1

    Fantastic! Wish I had known about variable documentation via super comments when I first started.

    • @stayathomedev
      @stayathomedev  ปีที่แล้ว

      Thanks! Super comments might also be my wording haha. Very useful little feature.

  • @maniksharma9736
    @maniksharma9736 ปีที่แล้ว +3

    Where do u get that hdr sky ?
    Link please..

    • @stayathomedev
      @stayathomedev  ปีที่แล้ว +2

      Here ya go! github.com/rpgwhitelock/AllSkyFree_Godot/tree/master/addons/AllSkyFree/Skyboxes

    • @maniksharma9736
      @maniksharma9736 ปีที่แล้ว +1

      @@stayathomedev thanks 👍

  • @Cymbalis
    @Cymbalis ปีที่แล้ว +1

    Another one for my play list: Godot 4 - The Good Stuff. Already added the water shader tutorial the other day.

    • @stayathomedev
      @stayathomedev  ปีที่แล้ว +1

      Sweet! Glad you found the water shader tutorial too! More on the way...

  • @purplepixeleater
    @purplepixeleater 10 หลายเดือนก่อน

    Wow trick 10 is really useful in all langs and interactions with GD

  • @EeVeE3D
    @EeVeE3D ปีที่แล้ว +1

    Great video.. Thank you...

  • @samuraikina5908
    @samuraikina5908 ปีที่แล้ว +2

    Nice man, hope to see more 3D tutorials 😊

    • @stayathomedev
      @stayathomedev  ปีที่แล้ว +1

      Thanks! More 3D tutorials are incoming!

  • @GPT-zodiacReadings
    @GPT-zodiacReadings ปีที่แล้ว +2

    This aged well

  • @ukrsolid
    @ukrsolid ปีที่แล้ว +1

    nice list

  • @pierrenagonio
    @pierrenagonio ปีที่แล้ว

    Hi! I am looking for a shortcut to focus back to the script editor. When I hit F5 to test a game and close it with build in function or F8, the focus is no more on the code window. Have to waste my time to get mouse and click on the editor :/ THX in advance!

    • @stayathomedev
      @stayathomedev  ปีที่แล้ว +1

      hmm, because it's a different window and process, I'm not sure how you'd do that. I'll have to check.

  • @ofAwxen
    @ofAwxen ปีที่แล้ว +1

    Trick 6 doesn't work because left clicking a node closes the script section and opens the 3D/2D section. So the script section closes before it can be dragged into.

    • @stayathomedev
      @stayathomedev  ปีที่แล้ว

      Hmm...it shouldn't. What version?

    • @ofAwxen
      @ofAwxen ปีที่แล้ว

      @@stayathomedev Using 3.4.4

  • @TheRealKaiProton
    @TheRealKaiProton ปีที่แล้ว

    Why do you have a semi at the end of each line?

    • @question_mark
      @question_mark ปีที่แล้ว +2

      ahaha didn't even noticed xD
      it's cursed gdscript i guess

    • @siderisanon7860
      @siderisanon7860 ปีที่แล้ว

      The semicolon is how you end lines in something like C#. It can be included in GDScript, but is not needed at all. Those of us coming from other languages might use the semicolon out of habit. Code that is C# or which was copied over from C# and then modified for GDScript could have those semicolons.

  • @purplepixeleater
    @purplepixeleater 10 หลายเดือนก่อน

    Hmm this seems only geared towards gd script devs but all still great tips!

  • @MaplePolicy
    @MaplePolicy ปีที่แล้ว +1

    Gold

  • @JoeKlemmer
    @JoeKlemmer ปีที่แล้ว +1

    It's better to pronounce it, go-DOE. Like "Waiting for...".

  • @hnydev
    @hnydev ปีที่แล้ว +8

    Ghetto engine tricks

    • @hemapoojari630
      @hemapoojari630 7 หลายเดือนก่อน +2

      Gadat engine tricks!

  • @KozelPraiseGOELRO
    @KozelPraiseGOELRO ปีที่แล้ว

    My brain hurts.

    • @stayathomedev
      @stayathomedev  ปีที่แล้ว +1

      A good hurt or bad hurt??

    • @KozelPraiseGOELRO
      @KozelPraiseGOELRO ปีที่แล้ว

      @@stayathomedev A "I don't understand but I'll try later" hurt.

    • @stayathomedev
      @stayathomedev  ปีที่แล้ว +1

      😄 it might look harder than it is once you're in there. I'll link the written version tomorrow so its easier to reference

  • @sussybaka2020
    @sussybaka2020 3 หลายเดือนก่อน +1

    OGM OMG !!! I LOVE UOY7!!!!