room

  1. blexc

    GameMaker Removing a room template causes many Warnings on project startup

    Hey, I used to have a room template for my game's levels. The room template came with some layers, an obj_goal, obj_sushi (the player), obj_deathplane, and that's about it. I realized the template was too much of a hassle, so I deleted the room template. Now whenever I open GameMaker 2, I get...
  2. diggie_smalls

    GameMaker Creating new room causes global variable set to fail.

    Hi all, as the title says, I have a global variable that is now unassignable when I create a new room for some reason. Pop :: Execution Error - Variable set failed new_song - read only variable? at gml_Script_main (line 41) - global.audio_manager.new_song = song_main_menu...
  3. WangleLine

    GameMaker Tile values randomly stored as "2147483648" in room files

    Hey everyone! Looking through all the .yy room files in my game directory, a bunch of seemingly empty tiles are stored with the value 2147483648 (2^31). Do any of you know why this is?
  4. B

    Windows Object/sprite/background instance transitions from room to room

    What GML codes and/or D and D block codes work for controlled instance movements of an object player to sequentially transition (by certain keys) from its current room to a another room (in sequence with each other), by inheriting certain room children of the first room as the parent , such as...
  5. iPirateGames

    I don't know how to prevent music from playing again when a room transition happens.

    Hello. I am working on a top-down RPG game (yes very original I know) and I currently have a system for room transitions where the player touches the warp object, it fades in and out from black and they are in the new room, everything working fine. I now have started to implement music into my...
  6. mogwash

    Room Order

    Hi everyone Has anyone been having problems with their room order? If I change the order of my rooms, or even delete them, it makes no change when I run the project. I've tried different versions of GMS2.3 and empty projects - same issue.
  7. AnnoyingDoggoX

    SOLVED Help with randomly creating instances within a room.

    room_w = room_width room_h = room_height repeat (50) { instance_create_layer(random(room_w), random(room_h), "Fish", obj_fish); } This code should create 50 randomly located instances of the obj_fish on the "Fish" instance layer of the room. It runs fine but nothing happens. It runs on room...
  8. D

    SOLVED Translate position in room to position on gui?

    I have a room that is pretty big in size. So naturally I'm using a camera and view. I can pan around, zoom in, zoom out, and resize the window. I've got all that working pretty good. I'm only using view[0] and its default camera. What I'm trying to achieve: This game is grid based and it is...
  9. D

    SOLVED room_get_width and room_get_height??

    Is there no way to get the current width and height of a room we're not occupying? I can clearly set the width and height of another room but how can there be no accompanying get functions? 🤯
  10. S

    Addition and subtraction of global variable doesn't work in another room

    Hello community, sry for wrong words if I use them. English is not my first language. I have a problem with addition and subtration of numbers to a variable. I used SetGlobalVariable to add 1 to a ressource called "money". I created the variable before in an extra script. SetGlobalVariable...
  11. R

    SOLVED room increasing and cleaning

    Hello guys, some time ago I had problems with the main project, so I decided to take a break and start a new and simpler one to practice programming. In this new project I'm doing a mechanic where the camera moves from left to right, and the further it goes, the room extends to give the effect...
  12. T

    Android [SOLVED] Make room scrollable

    Hello, maybe someone can help a not so deeply expirienced GML guy like me :/ I have created a very simple app for android that is showing some text and pictures for my kids. The room is bigger than any display-size, so I need to make the entire room scrollable. I am not sure how to do this in...
  13. D

    (SOLVED) Need help with warping the player through rooms.

    So I know how to make the object that warps the player through the different rooms because I have a separate game that I was working on and it worked out fine (that game was transferred over from gm 1.4 to gm2), here's the code of that original object: obj_player_1.x = target_x; obj_player_1.y...
  14. flyinian

    SOLVED I was getting these errors when I was renaming instances in a room. Could someone explain why the errors were created?

    Could someone explain this to me? I found a fix for this error, I just don't understand why it was coming up. I have enums called "Zone.Zone1", "Zone.Zone2" "Zone.Zone3",.... Could this be a cause? Hence the, " Script: Scr_GlobalVariables at line 67 : "Zone1" is a macro and cannot be used as...
  15. MacGregory

    Room Speed

    where can you change the speed of a room from 60 frames to 30 frames !? I can't find it after the update.
  16. TheRealMrSketch

    "Teleporter"

    I want the player to press a button whenever I reach the "teleporter" and I get to next room just fine, but I want it to be able to go back to the other room. However, I just go to the next room. I have a global variable called flipRoom which is supposed to check if you are in a "Negative" room...
  17. emicarra

    How to get instance id of instance placed in room

    Hello, i need to access the id of an object i placed in the room editor, which i modified the id name. What is the function to find the real instance id? Here's what i'm trying to achieve, by stepping on the 'o_tile_activator' i want the iron gate 'inst_irongate1' to open. In the instance...
  18. john2342152

    what would be the right way to create a "room"

    I wanted to make a 2D platform game, but I still don't know the proportions, the screen and room size and the camera, how do I do these things professionally so as not to interfere in the future?
  19. W

    Windows [Help] Global persistent instance across rooms (not Object , but only particular instance of same object)

    Hi Guys, I tried to create persistent instance from certain object and store it in global variables, so that i can access it across rooms. I deactivated the instance each time i created it. So when i changed room, looks like i'm facing issue to find the instance. Here the snippet of the code...
  20. KasparTheAhv

    SOLVED How can I get (instance_number) for all objects in a room.

    Hello! I'm a complete amateur and have "some" questions. 1. What is the difference between instance_count and instance_number ? Is it the same thing but for different versions of gm? or are they completely different functions? 2. How could I get instance_number for every object in the room...
Top