ds_grid_sort

  1. K

    SOLVED ds_grid_sort Does Not Work

    I am about to rip the hair out of my head trying to get my ds grid to sort. Seems like it should be so simple yet it inexplicably does not work. I have simplified my code as much as possible to try to get it to work on the most base level, but to no avail. Here is my code: unitGrid =...
  2. Slothagami

    SOLVED ds_grid_sort with two columns?

    I am making a leaderboard for my game (using networking, GMS:2) and I'm new to ds_grids I want to sort it so that the player with the highest killcount is at the top, and if two or more players have the same score their order is decided by health e.g: player1 has score of 2 and 6 hp player2 has...
  3. Z

    sorting grid with one column first, then second

    I've been at this for hours now and can't figure this out, and not gettinng a working answer :p I need to sort a grid in an ascending order. The grid has 3 columns: an instance name, an instance y value, and an instance x value. I'm doing this to have my own depth system. Now, I definitely have...
  4. Z

    Sorting grid regions

    I've been at this for hours now and can't figure this out :p I need to sort a grid in an ascending order. The grid has 3 columns: an instance name, an instance y value, and an instance x value. I'm doing this to have my own depth system. Now, I definitely have to order the grid for the y...
  5. P

    Legacy GM Difficulties determining the nearest instance in 3D space

    I'm trying to create a script that returns the nearest instance in 3-dimensional space, by looping through all active instances of the object, evaluating the distance using the built-in function "point_distance_3d", sorting the ds_grid containing the data so that the smallest distance value is...
  6. L

    ds_grid_sort not actually sorting?

    after a few hours of scratching my head and restarting my scripts I just have to ask here! I'm a bit new to Gamemaker, but have a little experience with C and other 3d-software-scripting languages. I'm just trying to make sense of where and how I should be calling ds_sort_grid. In my Create...
Top