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

creation code

  1. W

    Reading global variable

    My save/load system was planned with a few functions extra to make the game interaction more interesting, one of this functions is to variate the main menu background when a global variable has reached a certain value. I coded all the fuctions in the creation code of the main menu room, but...
  2. S

    GameMaker Camera Not Activating

    I have the following code in the creation code of my room: camera = camera_create_view(0, 0, 640, 480, 0, obj_player, 5, 5, -1, -1); var viewmat = matrix_build_lookat(640, 240, -10, 640, 240, 0, 0, 1, 0); var projmat = matrix_build_projection_ortho(640, 480, 1.0, 32000.0)...
  3. J

    Tedious "Creation coding"

    Hello, I am creating a level in my game that will contain a lot of different trigger objects that all act differently depending on their creation code. I set their path, speed or direction etc. Since there will be so many of them crammed into the compact space that is the room I will inevitably...
  4. G

    Question - IDE Adjusting Default Code Editor Size in Room Editor

    is there a way to adjust the default size of the Code Editor opens at when it's in the Room Editor or--more preferentially--have it open into it's own fullscreen tab like all the other code editors (e.g. object events, scripts) by default? it opens really huge on my screen: i would be OK with...
  5. S

    Running code after creation code

    I want to run some code after certain variables were set in the creation code. Whats the best way of doing this? I don't want to copy-paste any code in each creation code. Is there some sort of "After-creation-code"-event? Running an alarm set to 1 was another idea I had, but it seems very...
  6. A

    Legacy GM Lever that opens specific door

    I'm trying to make that if a lever is activated, it will open the door that is linked to it, but I have no idea how to open a specific door without opening the other ones. lever: if pressed == false { if place_meeting(x,y-1,obj_player) { if keyboard_check_pressed(ord("Z")) { pressed = true...
  7. H

    GameMaker [Solved] How to make a level selection screen?

    I'm using the free version - so limited stuff... Any way, i created the rooms i needed. I got some basic platforming action going on since there are ample tutorials on those things. However navigation between rooms is killing me. I have made a "choose room" object button that I have multiple...
  8. W

    Legacy GM [SOLVED] Random Background Blend

    backgroundcolor[0] = background_blend[0] = c_white; backgroundcolor[1] = background_blend[0] = c_red; backgroundcolor[2] = background_blend[0] = c_orange; backgroundcolor[3] = background_blend[0] = c_yellow; backgroundcolor[4] = background_blend[0] = c_green; backgroundcolor[5] =...
  9. B

    Legacy GM [solved] need to get individual variables in creation code of same object

    help I need to get the variables (In the creation code) that are in individual instances of the same object and call on them in another script
  10. B

    Legacy GM Warp Doesn't work correctly

    Hi. In past, I used the same metod to move the player in other rooms... ...now, with this new project it doesn't work. The creation codes wrotein each obj_door, enter probably in conflict each other: Here's the codes: obj_interactives_door_parent: Information about object...
  11. My brain is about to blow up!

    I am currently making a game and I am stuck. What I want to do is, if I click 'open pack' button, the corresponding pack should open. So, basically, I have 4 kinds of packs, and I want to open the pack and return the level of the outcome of the pack. Object > obj_open (object of the actual...
  12. T

    Legacy GM [SOLVED]Creation code?!?

    Guys, I'm currently programming a "slide_wall" something which you see in A link to the past. The code works fine. I am trying to have less objects by making the slide_wall object have states. If the player collides with it and it's state is "topright", something happens. eg: if (slide_wall.qaud...
  13. L

    Legacy GM [SOLVED]Access instance's "Creation Code" without room GUI Editor

    Hey, I seem to be missing something glaringly obvious about instances :-/ I have two instances of the same object in my room but they only appear after text input by the user (so I cannot put the instances in via the room GUI Editor or else they'd appear right away). The instances are...
  14. Z

    Signpost problem

    Not too long ago I have watched Shaun's video tutorial on how to make a walk by signpost were you walk by and the text string appeared above. However I thought that making multiple variables would help make multiple signs with a single object. Placing them in the room I thought that addressing...
  15. W

    Legacy GM Changing Path Followed with Creation Code

    I have a grenade enemy that I want to be able to follow a different path in the room based on what I give it's path variable as a value, 1, 2, 3 ect.. I've toyed around with paths before and made a block object that follows paths the same way but that was based more on just which block was...
  16. T

    Creating object in the room Creation event?

    Is it a bad practise to create objects in the room creation code? Should I just put them in the room manually?
Top