1. descrubb

    GMS 2 IDE - use object variable definitions to "link" editor object instances together?

    So, I decided I wanted to be able to create a sort of "map" that isn't a straight grid. One location might link to tens of other locations. I couldn't think of a way to accomplish this except for creating singular points and then manually linking them together. I have an object keeping track of...
  2. Kyrieru

    GMS 2 Seperate numbers in a string into an array? (solved)

    I'm loading a text file with lines like; 1,5,12 And I need to convert it into an array. I understand (more or less) how I would have to do this, but frankly as more of an artist than a programmer; when I think about it my soul tries to leave my body. Because I know I will stumble over it...
  3. If Programable_Matter

    How to shuffle ds_list() range of consecutive numbers

    I'm trying to develop a program in which you shuffle an array of numbers(numerals) example I make a "For" loop (i = 40, i <= 40, i ++) and generate the following value for i If I set an array (Array 1 - 40)...
  4. F

    Mac OSX Printing Out Wrong Array

    Hey guys I'm new to Game Maker Studio and new to the language. I'm making a game and have been working on the dialogue system. This chunk of code was designed for characters respond to a set of choices, the dialogue starts by printing out the first element of the line_array, which it does, then...
  5. Carloskhard

    GML Array says variable index out of range when its not

    So I have an array of 2 dimensions. I have declared the position [0,1] (also the position [0,0] for security, idk). If I access it after creating it ,it works, but if I access it after passing room it gives me an error: Variable index[0,1] out of range [1,1] - - 1.array[100184,1] *Note that the...
  6. zendraw

    GMS 2 resizing an array

    so i have an array that i want to resize. basically from whatever length it is to 1. and set that one slot to 0; so resize & reset. i dont see a function that does that so manually?
  7. zendraw

    GMS 2 array to list

    can you copy an array to a list without manually looping thru?
  8. KranoNetwork

    GML Needed some basic help with Arrays for a save system

    I am working on a program which would create a character sheet for a table top system. One of the parts I am working on is an array system which would allow me to set an infinite number of save spaces. Currently I have a menu system which brings me to two pages, one of the pages would edit a...
  9. zendraw

    GML Saving big array to file

    How do you save effectively a 512x256 array onto a file? right now past 20% the file becomes like 2.5mb and saving goes to a snail pace. the values are simply from 0-32 or so.
  10. zendraw

    limited array?

    does ararys have limits? ___________________________________________ ############################################################################################ FATAL ERROR in action number 1 of Create Event for object ocontroll: Array index must be < 32000 at gml_Script_scrstageset (line...
  11. B

    Fatal Error in dialog textbox

    I'm making a 2d game in gamemaker 2 and when I export and open the exe-file there pops up a fatal error. I have no clue what the problem is. I can play my game flawlessly in the gamemaker project, but when I play it as an exe file this error pops up.
  12. zendraw

    GML Check if in array

    is there a better way to chech if im in an array? if (((xm-1)>=0) && ((ym-1)>=0)) {global.tile[xm-1, ym-1].markmove=1};
  13. M

    Windows A question about arrays

    Hello. Excuse my english grammar I'm not a native speaker. I'm new to programming gml and I hope to learn more about this subject. I'm currently working on a collision system that's easy to use. I made a script in the resources tab containing an array of objects my player should be able to...
  14. Architheutis

    Keeping .ini-files despite of deinstallation app

    Hi buddies, :p now I am in the final cut-phase of my first big game. My game should be the first chapter of several. The gamer should be able to transfer his "earned" points, lifes and items into the next chapter, that must be installed. In case of a player unistalls the first chapter: Is it...
  15. C

    Finding the longest string in an array

    Im working on GUI right now and want to make sure the menu backdrop changes in size to fit the longest string in a given array. What function could I use to accomplish this? (I'm using GMS:S 1.4)
  16. S

    GMS 2 2 arrays with the same index?

    My game is pretty complex and would be probably confusing to people who aren't me, but I don't think I need to show much of everything else to bring up a bizarre bug that happened. This is the relevant code; cgv1 gets the variable for an array that stores information about a "skill" There are...
  17. clee2005

    Question - Code Array out of range

    Hey gang! I'm getting this error randomly from some users and am trying to figure out how this might be happening : Push :: Execution Error - Variable Index [0,2] out of range [5,0] - -1.mask(100160,2) My understanding is that it's saying my array var named mask is attempting to be accessed...
  18. wilmer

    Legacy GM Undo and redo the points of a path

    Greetings to all I have this doubt, in a Room I have several instances of objects that function as levels that when clicking click access to a different level and under those objects I have an open path with 46 points as if it were a path, as well as "Candy Crush", This is only for something...
  19. C

    GML [Resolved] Difficulty with arrays and for loops

    I'm trying to code a basic turn-based battle system where each character has a variable called "time," which, when it hits 0, allows that character to select a move (think ATB system in Final Fantasy in reverse?) I made a ds_map for each character, and then, for the battle system, made...
  20. FoufaDjo

    GMS 2 help with changing array

    i want to go back to the previous selectrang but i got iligal use array error att selecting += (dkey-ukey); and idk what to do creat event: sl = 0; selectrang1[0] = 0; selectrang1[1] = 4; selectrang2[0] = 3; selectrang2[1] = 5; selecting = 0; step event: ukey = keyboard_check_pressed(vk_up)...