sorting

  1. X

    GMS 2.3+ How to do a custom sort?

    I have a words list which is already sorted alphabetically I want to be able to read this in from the included files and then sort it based on word length but i don't see anyway with ds_lists for instance because the sort is just alphabetical Is there a way to write a custom comparator in...
  2. C

    I need help sorting a ds_grid

    Hi there guys, iv'e been strugling with a problem for a week now and i could really use some help, for some context im trying to implement field of view using the ray casting method (iv'e adapted a method from roguebasin to gml), everything is working fine except one thing, so i keep a ds_grid...
  3. Mig_PG

    Windows Isometric engine featuring : Depth Sorting - Z-heights - Ramps - Bitwise Grid/Collisions

    Isometric Engine Cool features so far : - Any number of floors / fevels - Ramps / Z-height - Pre-calculated depth sorting that handle any block dimensions. (Used a method described here : Isometric depth sorting) I did try a bunch of methods. I will talk about them in details when I next...
  4. B

    How do I get the "depth = -y" effect in a rotatable view?

    This is probably basic trigonometry but I have tried and failed. I would like to know "how far up" a point is in the view, even though "up" is no longer -y, since the view may be rotated. Thank you for any help or resources, unfortunately the ones I found did not help me since I did not...
  5. Erayd

    Design "Drop/Sort Box" Feature Name

    Hello all, I'm having a hard time coming up with a name that best describes the below feature. In order to explain it best to the player. Or if not name, then some graphical way of indicating what this thing can do. Essentially, I'm creating an inventory grid system, say 3 x 3 squares. Items...
  6. L

    Legacy GM Sorting a list without using arrays

    So I am in a interesting predicament. I have 15 variables called "order1_x" and the 1 is replaced by every number up to 15. These variables can hold a value from .1 to 30 and the numbers are always a rounded to the first decimal place. I have used these variables all over my code and its a bit...
  7. L

    Legacy GM Sorting a list without using arrays

    So I am in a interesting predicament. I have 15 variables called "order1_x" and the 1 is replaced by every number up to 15. These variables can hold a value from .1 to 30 and the numbers are always a maximum to the first decimal place. I have used these variables all over my code and its a bit...
  8. Pfap

    sorting through an array

    Hello, I'm trying to sort an array to find pairs. { { 1,3,8,10,9,11,9}, } What are some ways I could go about programming the above set of numbers to find that there is one pair of 9's? I think I may be making this more difficult for myself, but do I need to read the 7 values into separate...
  9. matharoo

    Discussion Built-In Z-Buffer Depth-Sorting In GameMaker Studio 2?

    Since depth = -y is somewhat obsolete now, do you think whether it's a good idea for YYG to make a built-in z-testing-based depth system? For example: the one Ariak made on the YYG blog. It is a great technique, and works well, but it has its limitations, like not being able to use image_alpha...
  10. Ggd07

    Question - IDE Sorting resources is painful and wastes a lot of time. Is it just me?

    Hello there, I bought GameMaker Studio 2 Desktop last year but haven't used it until now, since we decided to invest in the mobile module. I am trying to sort my resources and it seems the IDE does not allow me to, and constantly notifies me of "changed files" while I do that. I wanted to ask...
  11. cdgamedev

    GMS 2 Sorting Save Files By Creation Date

    Hi all, I'm currently working on a save/load function to my game but have run into a problem.What I want to do is sort all of the save files created by the user by the date in which they were created. Using file_find_first() and file_find_next() seems to sort them by their name. This doesn't...
Top