global arrays

  1. Risen

    Accessing global struct within a global array.

    Hi everyone, I'm trying to create a script for storing biome information on an array and I'm having issues calling it from another scope. the error seems to think that it is meant to be an object if I'm reading it correctly. here is the biome script: // initialise biome grid variables...
  2. S

    SOLVED Copied global array affects original

    (this is my first forum post btw) So i'm making an array that has structs in it, and it is first set as global test_array = [{list:[]},{list:[]}] before the next code is ran. And later i set this array to a different variable: test = global.test_array OR test = variable_global_get("test_array")...
  3. C

    Triggered variable one time

    Hello guys! I got a problem. I make game similar to FTL and i need this for my crew members code. So... i got script for rooms and crew members which are cloned obj_crew. This is inside the room_script which are in draw event of gui_object. This code it's for slots on my room scripts for the...
  4. Nixxi

    UWP [Resolved] Having trouble creating/initializing global variables

    Hello GameMaker Community. I'm having an issue with creating global variables for sharing information between the players, game objects, and ini reading/writing. Part of the problem is that my game has a max of twenty (20) save slots, each slot has roughly 5,200 individual datapoints (for...
  5. W

    GML How do global arrays assign to local variables?

    I know from what I've read before that it's best to make global variables into local variables during scripts (for performance). In the case of a global arrays, is this still true? When you do... var map = global.blockMap; ...is that making a copy of global.blockMap or just pointing to it...
Top