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

instance variables

  1. C

    How to get the variable list that is accessible in room editor?

    Hi guys, In my game I am going through several rooms and copying instances from those rooms. Then I am kind of sticking together these instances to create a level. For this to work I need to copy some data from those instances and then recreate them in the new room. Currently this copying works...
  2. R

    GameMaker Failing to read an instance's variable

    Currently trying to make it so, when my cursor is over a specific object instance (in this case, an instance of obj_cat), it should print the 'lastname' variable stored in the instance. I think I am having trouble with setting the variable properly, or else the scope is wrong somehow. The...
  3. N

    Variables stored in Object .yy file

    I was working with a camera object that has a few instance variables defined including: scale_ width_ height_ For some reason, after not touching the object for some time, I noticed the Create Event was entirely missing but all of the instance variables in its other events were still working...
  4. G

    Legacy GM Instance variable logic problem

    Ok is very simple, I have an object with this in create event: acc_y = -8; and this in the step event: if (acc_y < 12) { acc_y +0,25} y = y + acc_y; Now i thought that the istances of the object didn't share the internal variables. When I spawn one moster his speed will be like +5, but if i...
  5. E

     Color-Coding for Defined Variables

    Is there a separate color-coding option for object variables defined using the Variables button in the Object Editor? To make them visually distinct in code from instance variables created the normal way? If there isn't, can we please please pretty please get separate color-coding for them in a...
  6. M

    GameMaker Which is faster?

    I have a persistent invisible object called obj_game that controls most everything about my game: Which button is pressed, whether or not we're in a cutscene, how far we've gone along in the story, and whether or not the game is paused. [for example, if the variable global.paused = 1, the game...
  7. P

    Save&Load a room to ds_map

    Hello, I don't have a ton of experience with ds_maps but I am looking to save what is in a room (object positions and their variables) into a ds_map. I have saved global variables perfectly fine but when it comes to objects I'm having some difficulty. Here is a snip-it of my save code var...
Top