• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

ds_list

  1. C

    Issues with ds_list, seems like it is not initiated properly?

    Project info: Small mobile puzzle game. First day of development. Error text: ___________________________________________ ############################################################################################ ERROR in action number 1 of Create Event for object obj_init...
  2. Shavv

    ds_list Item removal

    Hi! Currently have a problem which goes as follows: inv_remove_item script is not functioning well removing items from ds_list Somehow it takes away all stacks from the whole list and doesn't actually listen to the _quantity variable. It only does when its actually destroying the ds_list_item...
  3. keatto

    when calling an image, how to set its index to a single subimage?

    Working with DSLists, I'm calling a sprite with a hundred+ subimages/frames. No matter how I write it, there's some syntax error in getting it to show a particular index for an image. I'm about to create hundreds of sprites instead of using just one with multiple subimages., was hoping there was...
  4. E

    SOLVED Hazard randomizer guidance/suggestions.

    I have numerous rooms with many hazards of different types: projectiles, fire, acid, blades, etc. I chose not to have a object controller place the hazards in the rooms because they're all specifically placed and it would be quite tedious to get the coordinates of each one for such an approach...
  5. Arlan64

    SOLVED instance_activate_object argument 1 incorrect type (undefined) expecting a Number (YYGI32)

    Hello, I created an enemy management subsystem that ties into my save system. The principe is that the room is persistent, and that a list is established. This list will fill each time the player kills an enemy (deactivate and not destroy the instance), then the enemy's id is stored in this...
  6. T

    GML Having trouble saving inventory data using ds_lists and structs

    Hi. This post is probably going to be fairly long, as I want to be as thorough as possible. Apologies for that, and bless your soul if you read through the whole thing. A game I've been working on for many years now is nearly complete, and its development has now reached the stage where I need...
  7. T

    GML "Undefined" numbers added from ds list to array

    Hi. I'm making a small town management/life sim game for a university project. We're supposed to explore new territory for the project, so I thought I'd make something that relies on a lot of RNG, since I'm not used to that. One of the core elements of the game is its Animal Crossing-esque NPCs...
  8. Lau

    Ds List wont stringify

    Im trying to save structs but im having problems with ds lists in structs. It all comes down to this example: var my_dslist = ds_list_create(); ds_list_add(my_dslist, "Value1"); ds_list_add(my_dslist, "Value2"); ds_list_add(my_dslist, "Value3"); var my_array = []; array_push(my_array...
  9. Cartoon Nickname

    Trying to have player go to different rooms while deleting room they've already been in.

    What I'm trying to do is create a rouge-like game without the procedural generated levels. Instead I have a bunch of set levels that I'm trying to shove into an array, then put that array into a ds list, then randomize said list so it's random when you enter a new room. The issue is that I...
  10. Mihaugoku

    GML ds_list_add uses the wrong list

    I have 2 ds_lists in use, one for an event queue for cutscenes, and another one for an inventory, called event_queue and inventory respectively. Here's the problem: I have a script that adds an event to the queue to pick up and item and add it to the inventory. case e_list.pickup: /*...
  11. 31Nf4ChZ4H73N

    is this the correct way to avoid a memory leak when creating a local ds_list?

    I want to create a ds list fill it with a bunch of ds_list assigned to a local variable which have some data and then at the end clear the ds_list so that the I have the same memory used as it never happened. I have a test object which in the create event only creates a ds_list dsl_list =...
  12. Sargonnas

    [SOLVED] ds_list iteration and assigning paths and path positions

    IDE v2.3.4.583 Runtime v2.3.4.443 I'm building a sandworm boss where the head and segments follow a path together. I want to assign the segments to the same path as the head, and then arrange themselves in a column behind it. I've been chewing on this a while, and my mind just can't wrap...
  13. R

    store and repeat items

    Hi guys, I'm having another problem with the array, more precisely I'm having trouble handling it. I'm creating a ds_list that contains some information, and in it there's another array that contains this information, I'll put the code here for better understanding loja_itens =...
  14. Josi Craft's

    problem whit reading from a "sub" list inside a map (JSON)

    hello im trying to learn how to use json but when i import the file it comms out as a list inside a list inside a map and i dont know how to read the fx "another question" part of the file plz help i have followed the 3 part tutorial from SamSpadeGameDev the Json file: { "sub list": [...
  15. R

    SOLVED checking a value in a ds_list

    hi guys, i'm having a problem with my game involving my inventory. I'm trying to fix a bug that when I go to craft a new item, in addition to spending the materials, the item is not created because the inventory is full, so to fix this I had an idea, to check if there is space, and if there is...
  16. Nick der mit hut

    Trouble with saving ds_lists and arrays to a struct based (json) saving system

    So I have done a video explaining things but the most important things are in the post itself. In the video I show the content of the json file though Hi, I have multiple problems using a save and loading system using json. My Saving code looks like this function SaveTest(){ if...
  17. T

    Ds_list check problem

    I created a ds_list inside a global variable called "global.inventario". I succesfully created a code that make my items apear inside my inventory, the numbers rise when I get more items and decrease whe I use it, but, when it reach "0" I need it to be deleted of my ds_list. There is the...
  18. zenomex

    Scan for specific object in range of another object

    Hey everyone! I'm trying to come up with a function that checks if a specific object is in range of the object the code is written in. I've read things such as using "with(all)", using a ds_list and having a variable in every single object... but I'm stuck and I'd like to know what is the...
  19. ashurlee

    Collision and Ds_list bug

    Can anyone see anything glaringly wrong with this code that could be causing collision checks to not always trigger? This code is written in the hitbox for the ability. I have tried multiple solutions such as increasing the size of the collision mask. Clearing the list on creation. Increasing...
  20. JasrielKraftuur

    SOLVED Setting Variables to Objects through ds_lists

    Hello. I am trying to create an inventory system that displays information based off the object you currently have selected. I've gotten the ability to show information to work, but I need to create a variable to set that value to. What I'm trying to do is print out this list of objects, the...
Top