Godot 4 Custom Resources

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

КОМЕНТАРІ • 40

  • @joga_bonito_aro
    @joga_bonito_aro 6 місяців тому +17

    So in programming terms, this is basically an abstract class

  • @fer6010
    @fer6010 8 місяців тому +18

    I was aware of resources, but never complete understood what "local to scene" means to them. So that's it. Very clever.

  • @MK_Codes
    @MK_Codes 8 місяців тому +12

    i never knew exactly what resources were until now, thanks

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

    Countless videos explaining how SIMPLE this is and then go on to show an example that is actually hard to wrap your head around without trying to figure out how everything works with the resources. They show you HOW to create them and how they CAN help but only for a very specific use cases. This was so much more simpler and well put enough that I was able to figure my problems with my resources.
    All seriousness this was a massive help. Appreciate you since I had like 10 different tabs open of videos and them all basically saying the same thing and showing the same thing. Only really letting me understand maybe 80% of it all. Def liked and subbed

  • @cyanCrusader
    @cyanCrusader 6 місяців тому +3

    Oh my god I've watched so many tutorials trying to figure this out and this was all it took...Bless you

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

    This was the last thing i learned in unity. Considered it complex scripting and struggled with it for months. Now, I just learned how to do it in Godot in like 5 mins. Thank you for this, will need to dive in more but this looks extremely easier to do in godot and somewhat intuitive.

  • @queblegamedevelopment4143
    @queblegamedevelopment4143 8 місяців тому +5

    Much love from Egypt, my whole family wants to be like you 🎉🎉💪

    • @Gwizz1027
      @Gwizz1027  8 місяців тому +3

      💪Great thanks from Brazil

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

    Thanks Gwizz, this is exactly what I have been looking for

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

    Thank you for the tutorial!!! Awesome content!

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

    Great simple to understand to the point and informative thanks alot

  • @borismarcone6991
    @borismarcone6991 3 місяці тому +1

    All fine and clear, now I would like to understand why using custom resources instead of custom classes. What's the true advantage?

    • @Anyashiina
      @Anyashiina 2 місяці тому

      the ability to tune custom parameters of an object in real time in the editor I would guess.

  • @gli7ch240
    @gli7ch240 5 місяців тому +2

    I love you tutorials man keep it up but you sound like you just had 20 cups of coffee before the vid 🤣

    • @Gwizz1027
      @Gwizz1027  5 місяців тому +2

      I ingest an unhealthy amount of caffeine on a regular basis

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

    doing something similar but had no idea about the local to scene. prob the solution to my current issue. tyvm

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

    great video, amazing explanation, ty

  • @charlesabju907
    @charlesabju907 8 місяців тому

    This seems to be a nice replacement for "serializing" (in Unity terms) a class/struct, since in Godot you can't just @export objects/whole nodes, right?

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

    Thank you very much, MAN

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

    thanks very straight forward!

  • @GothicRK
    @GothicRK 8 місяців тому

    THANK YOU SO MUUUUUUUUCH!!!! I FINALLY understand this, I love you man!!!! ❤❤❤❤

  • @RhevoRamirez
    @RhevoRamirez 2 місяці тому

    Thanks my friend

  • @ThiVasss
    @ThiVasss 8 місяців тому

    When do you want to use resources and when is it better to create your own components? Aren't these 2 very similar?

  • @Dev_242
    @Dev_242 2 місяці тому

    what would be the benefit to using this over maybe a Health/attack node with export var for each enemy?

  • @littleturtle3289
    @littleturtle3289 8 місяців тому

    Can you make a playlist just for the "programming concep" tutorials?

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

    Can I use one recource for multiple items for example? Because if you change the properties of the resource in one item, the same apply to other items as well.

  • @jhonfreitas4270
    @jhonfreitas4270 8 місяців тому

    Great video as always

  • @Omar_Al_Seddik
    @Omar_Al_Seddik 2 місяці тому

    I noticed you're naming your script and resource files in Pascal Case. Is this a common practice?

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

      @@Omar_Al_Seddik nope

  • @vicioustheend1049
    @vicioustheend1049 8 місяців тому

    Machu this is awesome ❤❤❤
    Some scenes changes and reload video tutorial plzz
    I have problem eg : Main Menu to Main Scene ok then back to Main Menu ok but not working

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

    Great video

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

    1:16
    for some reason the resource slot (on the Inspector to the left) is not showing up for me even after declaring the variable!!
    can anyone tell me any possible reason why this is happening??

  • @नरेंद्र_मोडी_चायवाले

    How to change values or packedscene from othet script to this script when i press a button

  • @truenincillo805
    @truenincillo805 8 місяців тому

    Please tutorial on how to swim player in water tile map with area2d in 2D platformer game, I need it very much.😢

  • @penguininpajamas
    @penguininpajamas 8 місяців тому

    Such a helpful video! Any chance you would create a video about a 2d grapple hook mechanic?

  • @fernandoiraira6926
    @fernandoiraira6926 8 місяців тому

    Hi! Thanks a lot for a clear tutorial, but i'm having an issue, maybe someone can help me, lets say i have this resource:
    extends Resource
    class_name Plant
    @export var name: String
    @export var health: int
    @export var min_water: float
    @export var max_water: float
    @export var buy_value: float
    @export var sell_value: float
    @export var decay_rate: float
    var current_water: float = 0
    func water_plant(water_amount: float):
    if current_water + water_amount

    • @ManuelAndrePlaystation
      @ManuelAndrePlaystation 8 місяців тому

      i don't think you can execute functions in a resource. try defining the function in the resource, but call it in the scene

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

      @@ManuelAndrePlaystation yes, this is the solution, thanks a lot!

  • @Floffffff
    @Floffffff 8 місяців тому

    Hi, I'm in desperate need for a tutorial about this topic: What if I have 2 virtual mobile joysticks and I want to be able to move both of them at the same time? (I mean something like brawl stars' controllers)
    A tutorial would be really appreciated

    • @Gwizz1027
      @Gwizz1027  8 місяців тому

      please do not spam the same comment on multiple videos