• 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!

not set before reading it

  1. M

    GameMaker Referencing the nearest object instance

    Hello all! I want to implement a "missile" weapon that locks onto the nearest enemy instance. I was able to make the "missile" lock onto the enemy instance's 'x' and 'y' positions at the point when the missile object was created. But I want the missile to always follow the closest enemy all...
  2. R

    unknown_object not set before reading

    I am on the latest gms2 version following shaun spaldings tutorial on the rpg game part 16 and I get this error function PlayerCollision() { var _collision = false; var _entitylist = ds_list_create(); //horizontal Tiles if (tilemap_get_at_pixel(collisionMap, x +...
  3. vnya

    Variable not set for destroy sequence

    hi, im making a pause menu and when resume button is clicked its suppose to destroy sequence but my current code have this error and this is code to my objectpause and objectresume ObjectPause if (!pause){ instance_deactivate_all(true) pause=true...
  4. I

    Not set before reading it, what is happening?

    Hey I was practicing programming with the game "Tetris", well... everything was going well until it happened: ############################################################################################ ERROR in action number 1 of Create Event for object <undefined>: Variable...
  5. W

    Not existing variable "not set before reading"

    Hello everyone, I'm working on a platformer/fighting game right now and I just followed a tutorial on how to add a grapple. However, now when I run my game and press the button to use this grapple i get this error : ERROR in action number 1 of Step Event0 for object obj_Reb: local variable...
  6. FacesOfMu

    object variable "not set before reading it.", but it's set in Create?

    Hi all, I have an obj_container with a line in Create: slots_obj = array_create(0,0); // stores the UI inv slot objects And in Step: show_debug_message("slots_obj is " + string(slots_obj)); But when I run it, I get Variable obj_container.slots_obj(100373, -2147483648) not set...
  7. I

    saying "var not set" but i did set him

    hi, here is the code: (on obj1 create event) items[0] = pointer_null; item_num = 0; (on obj2 step event) obj_1.items[item_num] = obj2; crash report: Variable obj2.item_num(100010, -2147483648) not set before reading it. at gml_Object_obj2_Step_0 (line 10) - obj1.items[item_num]...
  8. J

    I have a little problem with my Platformer

    I have used this code //Get the player's input key_right = keyboard_check(vk_right); key_left = -keyboard_check(vk_left); key_jump = keyboard_check_pressed(vk_space); //React to inputs move = key_left + key_right; hsp = move * movespeed; if (vsp < 10) vsp += grav; if...
  9. J

    error: global variable not set before reading it.

    The global variable that is not set before reading is declared in a persistent object that I place in the room (I only have one room right now). It's declared in the game start event. (I tried the room start event and got the same error.) global.orb_speed = 5; This persistent object is the...
Top