• Hey! Guest! The 39th GMC Jam will take place between November 26th, 12:00 UTC and November 30th, 12:00 UTC. Why not join in! Click here to find out more!

ds_stack

  1. R

    Neccacry to destroy ds_stacks that are local variables?

    If I create a stack as a local variable: var stack = ds_stack_create() Do I still have to destroy it with ds_stack_destroy(stack)? What if i use it in a script and then return it? How can i destroy it after I return it in the script as anything after the return will not execute? .... return...
  2. Simon Gust

    GML Fastest way to read / write using data structures

    I have some questions regarding data structures. I know that they are altered arrays with various features in them making them suitable for different situations. In my situation, I want to read and write a lot of data in a single draw. My idea was to use a ds_stack to push and pop data super...
  3. R

    A little help checking off a variable string against an entry in a DS_list (etc)?

    Hi again everyone, It's been a while! I've had a tiny bit of spare time recently, and I thought I'd get back into some gamedev stuff. I've only been back into it a couple of days though, and I've hit something of a road block! Basically, I've been trying to figure out a way to make an engine...
  4. Shadowblitz16

    GMS 2 ds_stack bring element to top?

    hello I have been doing a z2 editor based around widgets however I need a way to have a data structure that I can add elements to and bring them to the top and read from them when I click on a widget currently I am doing a ds_stack but I'm not sure how to bring a element in the stack to the...
  5. R

    A couple of Queries about Data Structures (Stacks and Lists)

    Hi Everyone, This is something of a peculiar query, as it is more like me asking for some guidance or advice rather than a specific question persay, so apologies if this is the wrong section. I'm looking at making a deck building game and I'm just starting to explore the possibilities for...
  6. W

    Legacy GM [SOLVED] DS Stacks and Queues performance

    Are DS Stacks and Queues the most performant of the data structures if you simply need a list where indexing doesn't matter? Is it efficient assigning them to a local variable and then using ds_stack_destroy(id) at the end of the script (for something that happens every step). What are they...
Top