Arrays/Lists in Godot - The Non-Coder's Guide to GDScript 11

Поделиться
HTML-код
  • Опубликовано: 12 сен 2024

Комментарии • 22

  • @dahls.2945
    @dahls.2945 2 года назад +2

    So happy I found your channel. You explain everything clearly and show all the different ways they can be applied. I was at my wit's end trying to make sense of how I could put them in my script. Human brain is so much easier to learn than this lol. Slowly going through your tutorials now.

  • @yuvenna8746
    @yuvenna8746 2 месяца назад

    You're a very very good teacher. Thanks so much!

  • @venitro7
    @venitro7 10 месяцев назад

    You have made the learning process much much easier, I appreciate it.

  • @kurenai5000
    @kurenai5000 2 года назад +1

    Thanks man. That last bit helped me with my text system.

  • @alanspektor274
    @alanspektor274 2 года назад

    Super helpful for understanding lists! ty so much.

  • @marcomoscoso7402
    @marcomoscoso7402 2 года назад

    Amazing tutorial. I´ll use it as reference if I forget the logic of arrays.

  • @successspotu
    @successspotu 6 месяцев назад

    Really helpful

  • @deethanyter7324
    @deethanyter7324 Год назад +1

    I thought your pug was a motor bike outside....

  • @szccornish8034
    @szccornish8034 2 года назад +1

    So array and list is a same thing ?

    • @acb_gamez
      @acb_gamez  2 года назад +3

      Yup! they are just different words people use because different programming languages have different terminologies.

    • @szccornish8034
      @szccornish8034 2 года назад +1

      @@acb_gamez thx for the explanation !

  • @voidling2632
    @voidling2632 2 года назад

    erase seems to delete the array with the object itself, instead of just the array entry :\

    • @acb_gamez
      @acb_gamez  2 года назад

      erase is an inplace method that removes the first occurrence of the value from the list. if you try to capture it with array = array.erase(value), array will evaluate to null because erase does not return anything.

  • @RegenerationOfficial
    @RegenerationOfficial 11 месяцев назад

    why can't I export that list?

    • @acb_gamez
      @acb_gamez  11 месяцев назад

      You can export lists. You can also statically type them. Look in the docs.

    • @RegenerationOfficial
      @RegenerationOfficial 11 месяцев назад

      @@acb_gamez educate yourself, I did! They don't support it with list. And no it doesn't support complex exports as in "[Export] public List gO;". the wiki is a mess and like the engine maintenance is a design choice rather than necessity. but they do it for feeeeeeeeeeeeee

    • @RegenerationOfficial
      @RegenerationOfficial 11 месяцев назад

      @@acb_gamez found a similar workaround with the array, it's not what I want and slows things down. But at least it's kind of familiar

    • @acb_gamez
      @acb_gamez  11 месяцев назад +1

      @@RegenerationOfficial
      Typed and exported arrays:
      @export var textures: Array[Texture] = []
      @export var scenes: Array[PackedScene] = []
      I don't know what language you are writing in, but Godot is made to be written in GDScript.
      There are no fees anywhere in Godot, I don't know what you are referring to.
      What do you mean it slows things down? as in your workflow? because I highly doubt that you would notice a difference in runtime frame rates.

    • @RegenerationOfficial
      @RegenerationOfficial 11 месяцев назад

      @@acb_gamez it starts with godot misuse of terms like array, gets advanced by longer compile/import times and ends with a quarter of the possible fps. It is noticeable if you are as impatient as me and script it in c#.
      My criticism towards you is the use of variables, because I don't know what you put into them, I've never used the types you are referring to but never name. But that only matter for amateurs like me.

  • @celsladroma8048
    @celsladroma8048 10 месяцев назад

    5k view I'm in the blink of GDScrips learning again.. probably their a little people know this..