Reusing Scripts has Never Been Easier in Godot 4.2

Поділитися
Вставка
  • Опубліковано 25 чер 2024
  • This tutorial aims to showcase the capabilities of Script Templates in Godot 4.2. While many times, it would be easy to copy and paste a script from one project to another, it could get cumbersome to repeat this action every time you wanted to use a piece of code.
    Script Templates provide a convenient way of applying a per-node configuration which lets you chose more complex functionality, speeding up development time.
    Links to discussed topics:
    Script Templates - docs.godotengine.org/en/stabl...
    Assets:
    Kenney's Pixel Platformer - kenney.nl/assets/pixel-platfo...
    --------------------
    Github repository for this project.
    TO BE UPDATED SOON
    Support me on Ko-Fi: ko-fi.com/cashewolddew
    --------------------
    Chapters:
    0:00 Built-in Script Templates
    1:00 Types of Script Templates
    1:22 Project Level Script Templates
    3:34 Editor Level Script Templates
    5:43 How to Customize Script Templates
    #godot #gamedev #gamedevtips

КОМЕНТАРІ • 15

  • @piousthepious
    @piousthepious 13 днів тому +6

    This is actually so useful

  • @TheRealAfroRick
    @TheRealAfroRick 9 днів тому +1

    This is super useful. I wish there was an easier way to install editor level script templates so that people could install them with addons

  • @nolarisa4846
    @nolarisa4846 11 днів тому +3

    Easy for beginners. I like it

  • @albert69Einstein
    @albert69Einstein 12 днів тому +1

    i like this. ty

  • @cashewolddew
    @cashewolddew  12 днів тому +1

    I have no idea what happened at 6:40

  • @silentmenot
    @silentmenot 11 днів тому +1

    Ty 🧐👍

  • @forestrainbows
    @forestrainbows 12 днів тому +2

    This is really helpful ✨. What extension are you using in VS Code for GDScript?

    • @DeadIndGames
      @DeadIndGames 12 днів тому

      Probably the Godot Tools extension.

    • @cashewolddew
      @cashewolddew  12 днів тому

      You're right! Thanks a lot for helping out. It is Godot Tools. 🥜

  • @DungeonMartian
    @DungeonMartian 10 днів тому

    How does editor level scripts interact with multiple people working on the same project with something like git?

    • @cashewolddew
      @cashewolddew  10 днів тому +2

      That is a very fair question. Once created and added to the project, a script is trackable. However, the editor template can't be tracked as it is not part of the project.
      If you'd like to also track the template, then it would make the most sense to create it as a project level template.
      Hope this helps! 🥜

  • @darknetworld
    @darknetworld 10 днів тому

    those folder are case sensitive? need to double check...

    • @cashewolddew
      @cashewolddew  10 днів тому

      I was able to try this on Windows and it seems to work. Generally, though, Linux systems are case sensitive, so I would try to be careful in that case.

  • @richbuilds_com
    @richbuilds_com 11 днів тому

    This method falls down quickly when you want to inherit from multiple bases. e.g. A chest that's openable, moveable, detroyable...

    • @cashewolddew
      @cashewolddew  11 днів тому +1

      Thanks a lot for the comment!
      I think it mostly depends on what you intend to do, of course. If there is something that can be written in code, then this could prove to be a good solution.
      If there is something that you'd like to be more customized, then maybe you'd be better off with other solutions.
      Nonetheless, you're right. There's generally no one-size-fits-all feature.