creation code

  1. B

    SOLVED Help with issue related to persistence and event ordering

    I have an issue that I believe may be due to the ordering of events, but am not sure. The game I’m working on has the player moving through various rooms, and depending on which door the player enters the room from, where they spawn in that room will change. All the rooms are persistent, and the...
  2. D

    Instance Creation Code Keeps Deleting itself

    Hey, i'm not sure why but this all started happening recently. In some rooms (not all of them) anytime I try to add some creation code to an enemy object, the code will delete itself and I have no idea why. Any help at all would be greatly appreciated, thank you!
  3. Robzoid

    Windows Creation Code Bug?

    When I enter the creation code for an instance (pic 1), close out the creation code window and reopen it, the code is gone (pic 2). However, if I do the same thing (enter creation code, close it, reopen it) for another instance, it's fine - the creation code is still there when I reopen it (pic...
  4. Nathan

    GMS 2.3+ Changing the opacity of a Room layer in the room creation code

    I have an instance layer that is only in the beginning of the game that needs to have its opacity adjusted. It contains objects that are elsewhere in the stage, but the object (instances) itself needs to remain at 100% opacity for every other instance it is used in the game, therefor it's...
  5. Vredniuka

    GMS 2.3+ Default from DND to GML?

    I started my project, unfortunately, in DND a while ago. But now I know enough code that I want everything in GML by default. In previous version of GM2 my instance Creation Code used to come up in GML by default, but now it's DnD and it's annoying to have ot use Execute Code tool to do some...
  6. Serra Iglesias

    Creation code in Instance creation

    Hi! Im serra and i don't have good english level, sorry for that, anyway, im making a game on, if you mine a (any object) you get (any item), but i don`t want to make a lot of items, i am questioning to make a single item and works for all items (stone, wood...) The problem is, i need to make...
  7. D

    Issues with DND with Creation Code

    I am working with my class on a Gamemaker Platformer game and we are wanting to drag and drop into the creation code. When I click and drag onto the creation code, nothing happens? How do you fix this or is anyone else having issues with it? Thanks. Version 2.3 of Studio.
  8. G

    GMS 2 Question About Establishing Enums in GML Object Create Event Vs. First-room Creation Code

    [Sorry if this question has already been asked and answered. I searched and couldn't find what I was looking for.] Is it better to establish an enum in something like a rm_init (first room creation code) or is it safe to establish an enum in the create event of an object which is going to be...
  9. Null-Z

    GML trouble with creation code(SOLVED)

    I'm trying to make an object with empty variables in the create event that I can fill in the creation code event. After managing to get it running and not immediately giving an error, I found the object in question was not creating the desired object designated in the creation code. currently I...
  10. S

    GMS 2 SOVLED Creating a creation code for generated object

    Hi, I wanted my game , when a Player coems to certain spot to create warp which will port him somewhere, but I need to create a creation code when it spawns. How could I code , that when creating that warp it will be created with creation code? I used this code to create Warp: var p =...
  11. D

    Mac OSX Finding room_id in creation code

    I have a grid containing duplicates of the same room with doors facing north, east, south, and west, that brings the player to the next corresponding room. In the creation code for the rooms I need their ids to find their location on the room grid to find their neighbors and if the are connected...
  12. Z

    Creating a countdown timer with Creation code?

    I have created a sentry enemy that fires at given intervals with the alarm variable however I feel like the alarms are too mechanical and mundane so I plan to set up an timer system as a creation code. I have a few ideas how to pull it off but the real trick is resetting the timer in the...
  13. C

    How to Update Creation Code Variables (arrays) During Run Time

    Hello, I'm having trouble updating some variables for my npc's talk code. I set the data for the variables within the creation code so I can use one npc object for all the npc's in the game, but when I make certain changes, the variable won't update to reflect the change. Here's how it works...
  14. 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...
  15. S

    GMS 2 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)...
  16. 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...
  17. 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...
  18. 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...
  19. 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...
  20. H

    GMS 2 [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...