room

  1. T

    Loading sprites

    Good afternoon! A small question. I heard that to optimize in Game Maker 2, you need to load sprites programmatically every time you load a room, and not load them through the IDE. Sprites downloaded directly into the project loads game's memory a lot? If so, then how can i load sprites right way?
  2. T

    Optimization for render

    Hello again! And again the question of optimization :) Can you tell me what methods for optimizing rendering in graphics there is in Game Maker 2? I found this video , but here is a rather high cost for CPU method. In this example all objects are listed manually. Can there be others?
  3. C

    RESOLVED: Roof changes to transparent when entering house(RPG Style)

    Hey guys and gals, I looked online but really couldn't find much for the following element I would like to add to my game. That being said, how can I make the roof go transparent when my hero_sprt goes inside the house, mind you I am using a physics world. Any help is grealy appreciated :)
  4. G

    GameMaker Surface Draw Help

    Hello, I have a Game Maker Studio 2 IDE v2.1.2.257 Runtime v2.1.2.172. I need help solving/understanding surface draw, newbie programmer here. I have an room that is 1307 width and 5832 Height. An object called obj_view_control with a variable call camera and created a view 720w 1280h. camera...
  5. W

    Question - IDE Can't edit room properties?

    Hi, I can't expand the room properties. I'd like to edit the room settings (room size). I tried watching a few video's and guides and they seem to be able to edit the room size in under this column but I can't get it to open. Just nothing happens when I click "Properties - room0", am I looking...
  6. D

    GameMaker Help with drawing text

    The game I am making is a personality quiz that uses the same room for every question. How can I get game maker to draw text above an object depending on what room it is in?
  7. M

    GameMaker Avoid duplicated events (SOLVED)

    Hello, I like to know the best way to avoid duplication. Here is a simple example: * game for 4 player * each player has 1 headquarter Here are some options but I hope there are better options I do not know until now: 1.one object for each player (+) organization of a room is easy (-) events...
  8. J

    Legacy GM Choose command based on room name

    Dear gamemaker users! My situation I have made one object and two rooms. One room is called 'outside' and the other is called 'ínside'. I want object to set run=true when its in room 'outside'. And when object is in room 'ínside' it should set run=false. I used the following line to find out...
  9. 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...
  10. Caio

    Legacy GM What is the best configuration for View and Port?

    Hello, what is the best configuration for view and port in room? for 16x16 and 32x32 tiles and sprites
  11. T

    trying to make a room gen with arrays

    I don't know why but my objects just aren't being created. Anyone know why. its in a create event depth = 234 i=1 /// Number TO object gen //set variables global.rex1 = 12 rex = global.rex1 rex = 14 // Ini setting strings to numbers randomize(); //pick room types //12 if rex = 12 { //...
  12. S

    How do you make the map rotate instead of the player?

    Goooooood afternoon! I'm here trying to make a topdown shooter where rather than the character rotating in endless circles, he stays facing up and the ground beneath him rotates, using 8 directions with his movements. I've been looking all over the place for a good couple hours, any suggestions?
  13. I

    Question - IDE Dropping object in room snaps to grid intersection

    When dropping or painting (with LMB + ALT) objects into a room, the object snaps to the grid intersections. Also moving single objects snaps to grid intersections. However moving multiple objects (selected with LMB + SHIFT) moves the objects to the grid cells and not the intersections. This...
  14. P

    Problem with room persistence.

    I use creation code in the rooms to change levels: Example: global.room_left = room1b; global.room_up = room1_3c; global.room_down = room1_3a; global.room_right = room1_4a; etc. However, when I set a room to "Persistent" the changing of rooms gets wonkie, meaning, it no longer follows my...
  15. H

    Moving to the next room

    So I have objects in the room that, on collision, take you to the next room (basically exits) I also have a fade effect that plays when moving rooms, for snazzy effects. So what I have it set to with the exits is that on collision with the player it creates the fade object, and the fade also...
  16. M

    GML Best way to program an inventory? Room vs. Draw GUI?

    https://puu.sh/xVvUZ/3f7ad34902.png I'm working on programming in an inventory system, akin to the Minecraft. I've done a bunch of digging around and trying to figure out how best to work an inventory system, and so far, I've found I can do this one of two ways: Program it all from Draw GUI...
  17. T

    Android How to pick the right room size for Smartphones?

    Hello, I want to start looking into Android Game making with GMS2. In case I want o create my game for landscape modus, how should I determine which width and height I should use for my rooms, so it does match on all (or most) devices (smartphone and maybe tablets)? Thank you in advance for...
  18. U

    GameMaker Question about rooms and objects

    For about three days I'm testing my code. And noticed an interesting "feature". I create a room - loading_room. I want run some preload script (scripts in the future) in this room. Now the script is small and it runs very quickly. Then i want to go to the next room. loading_room...
  19. P

    Question - Code tilemap_get_at_pixel outside of room context

    Hi, I've been using GMS 2 tiles in combination with procedurally generated levels. I have a couple of pre-defined room templates and I need to access their tiles dynamically on the run and assemble the whole level from them. I was wondering if it is possible to access the room's tiles with...
  20. U

    GameMaker Question about rooms

    In every room we can write a RoomCreationCode, create objects from code, place objects etc. Room is not persistent, and object is not persistent or global (like variable). Do we need to delete these objects, variables? RoomCreationCode (room is not persistent) //Camera create view_camera[0]...
Top