Lists - Data Structures in GameMaker

Поділитися
Вставка
  • Опубліковано 3 січ 2025

КОМЕНТАРІ • 13

  • @iainburge
    @iainburge 3 роки тому +4

    I only just found your channel, but this is all really incredible stuff! I'm a computer science student so I'm really glad to see someone talking about all the nitty gritty stuff in gamemaker. Keep up the fantastic work!

  • @HNIC_Neochilds
    @HNIC_Neochilds 2 роки тому

    Have to give you some credit dude. I needed a simple explanation of dslists and you did that in literally 1-2 minutes and I understood what I needed. Thank you dude.

  • @thinker2273
    @thinker2273 3 роки тому +2

    You should've perhaps mentioned the fact you can view lists (and all other ds_ structures) as the actual structure they represent as opposed to their numerical ID in the debugger.

    • @DragoniteSpam
      @DragoniteSpam  3 роки тому +3

      Hmm, maybe. I wanna make a few debugger videos at some point, will definitely bring it up then.

  • @larryteslaspacexboringlawr739
    @larryteslaspacexboringlawr739 3 роки тому +2

    thank you for making this video for gamemaker 2, i need this more beginner friendly type video for my beginner project, i will review your playlists looking for a 2d ai type video (i hope to one day make a 2d age of empires, rise to ruins type game)

  • @ronbriscoe888
    @ronbriscoe888 3 роки тому

    Hey, first off I always love your tutorials, however there is a difference in ds_list_replace and ds_list_set. Basically the difference is probably nothing anyone would ever do, but if you have a list for only 5 items and you try to do a ds_list_replace to change the 10th item nothing will happen, but ds_list_set will add items so you have a 10th indexed item and all the items between the 5th indexed item and the 10th indexed item will be set to 0.

    • @DragoniteSpam
      @DragoniteSpam  3 роки тому

      Do they behave differently in those circumstances? Nice. Another reason to just use the accessor, lol. Thanks!
      At this point I'm a little surprised that the two functions just don't point to the same code internally.

    • @ronbriscoe888
      @ronbriscoe888 3 роки тому

      @@DragoniteSpam Well the replace tries to replace a value at that location and since it doesnt exist there is nothing to replace, but the set function tries to set that value and since it doesnt exist either it has to add entries to reach that index. I can't see any use that this could be used for but it is nice to know the difference.

    • @DragoniteSpam
      @DragoniteSpam  3 роки тому

      @@ronbriscoe888 I suppose for the sake of being exact, it makes sense - but like you said, this probably isn't something that people are going to need to deal with in practice very much.

    • @Gbtx6
      @Gbtx6 3 роки тому +1

      @@ronbriscoe888 I think this would maybe be useful in games like Horizon Zero Dawn where you can upgrade your inventory slots so you have more empty slots. So adding 10 more empty slots would be super easy to do if you were to go from 5 to say 30.
      Btw thanks a lot for your comment, this gave me a great idea. Had I not seen it, I would've never thought of the usability it brings to specifics like the example I provided :D

  • @karlstenator
    @karlstenator 3 роки тому

    I can't believe this also actually works;
    #macro please ;

    • @DragoniteSpam
      @DragoniteSpam  3 роки тому +1

      your code runs better if it's politely-written, true fact