layers

  1. GoK

    How to get layer ID from the "begin script" [Solved]

    Guys, sorry for my English, but I need your help. There are several layers in the room (their number and order can change at run-time). All layers should be drawn with the same shader, but with a different uniform parameter. Parameters are stored in the map (layer ID -> parameter). It is logical...
  2. K

    GML Creating sprite from surface on a certain layer

    I'll try to explain what I want to do the best I can. I've been looking into the function sprite_create_from_surface, so I can save a sprite from whatever is drawn in a certain spot on my screen. What I need for my design is actually to create this sprite "behind the curtains". The player...
  3. T

    Pop-up game screen in Game Maker Studio 2

    Hello everyone, I've come here because I need answers about a difficult thing i have to do in my game. I'm making an open space-exploration shmup and wanted to make small space stations that you can visit by foot. The only problem is that i want the space part of the game to continue running...
  4. T

    GameMaker Cameras not Working with Multiple Layers

    I'm not sure if I'm being a complete idiot, but I'm still learning the new cameras system. I've created a room and the camera works fine, doing everything I want it to, but then I add a new layer to the room and then I can't see any objects. I know they exist, since I can see them drawing...
  5. Erayd

    GameMaker Binary List Depth Ordering Issue

    I've been working on following this concept on binary lists as depth ordering: https://forum.yoyogames.com/index.php?threads/depth-ordering-in-gms2-priority-list-nested-list-grid-binary-list.13425/ I dived in to bitwise operators and read through several demo scripts by yoyo along with reading...
  6. c023-DeV

    Windows Using same tile-atlas on different layers (Performance Question)

    Hey, I have all my wall-tiles mapped out on one sheet (512px x 512px) for convenience and mixing. If I create multiple layers with the same tile-texture, will these layers also multiply the texture in memory or do they always refer to the same chunk in memory?
  7. J

    GameMaker Weird issue with Yoyo Runner rendering only background

    Hello! I posted this in the GMS support forum, but figured I'd also try here, just in case. I work on my game part time and in the last couple weeks I hadn't touched it. I came back to it recently, and now when I run my game in YoYo Runner, I only get the background color. I get the initial...
  8. A

    Room Editor Auto opens all layer folders

    Greetings GameMakers! Whenever I go into the room editor, all of the layer folders are automatically opened. I've got a lot of layers and folders for organizing them (I'm using something similar to @MirthCastle's sorting method and something close to his layer conventions. Check it out below if...
  9. BlueHarrier

    GameMaker Question about copying rooms within rooms

    Hi, recently I've been working on something that needs to use rooms as templates for a main room. At first, I had the idea of picking the layers of another room and recreate them on the main one, but the porblem comes with the instance layers. I don't know if there is any way to create the...
  10. K

    GameMaker Is it possible to have layers with different resolutions?

    Hi, I'm relatively new to GMS 2 and quickly getting the hang of GML, and I would like to know if there is any way to have a layer that's more pixelated than another. For example, an 8-bit style game with an hd HUD. If this isn't directly possible, could there be any work around to do something...
  11. F

    GameMaker [SOVLED] Sprite Depth: Stretching to Layers or to Objects

    I need to draw a sprite at a specific depth in order to fit between layers, but I also need it stretched to double its current size. Option 1: Create a second sprite which is double its size, move it to an object, and draw it at depth. There are many sprites and this seems horribly tedious...
  12. R

    GameMaker layers not working in first Arena tutorial

    I downloaded the trial version of GMS2 and I am going through the tutorial "My First Arena Shooter DND". I am doing what the tutorial says and everything works exactly as in the tutorial until I get to the step in Part 2 when bullets are assigned to a layer of their own. They are then supposed...
  13. D

    GameMaker [solved] layer_sprite_x() usage?

    IDE v2.2.0.343 Runtime v2.2.0.261 Windows 10 VM output I am trying to get a background to move in the current room, the room has a single instance layer with an object. According to the manual...
  14. J

    Unexpected behavior with moving layers and invisible objects

    Hello! I'm having an issue that seems odd to me, but maybe there's some nuance to Gamemaker Studio 2 that would explain it. I'm working on a side scroller and I have working with 4 layers in my room to create forground & background areas to explore. This is done with 2 Ground Tile layers and 2...
  15. N

    Question - IDE Collapse Layer Folders

    I've been working a whole lot with Layers in the Room Editor, and one of my larger projects requires lots of layers in each room. I organize them into folders, but every time I open the project, all of the folders are expanded which creates a huge mess. Is there a way to easily collapse layer...
  16. A

    Keeping Character at Correct Depth While Changing Rooms

    Howdy, Probably has a simple solution but I can't seem to find it- I generally put my character in a layer below foreground objects to allow for a feeling of depth, but now that I have several rooms that doesn't work after the player has changed rooms because a) if there is already a player...
  17. A

    Help with layer_script_begin/layer_script_end

    Hi. I've been trying mess with these scripts for something else, but it seems like I can't get the scripts to execute. Create event of camera object: rendering = true; layer_script_begin(layer_get_id("Sprites"),layer_testscript); layer_script_end(layer_get_id("Instances"),layer_testscript)...
  18. Kyrieru

    GameMaker One big tileset or multiple tile layers?

    Which is faster? 1. Large tilesets with fewer tile layers in rooms. 2. Multiple Smaller tile sets, but having more tile layers. If tilesets are split up more, then I need more tile layers . On the other hand if everything is in one gigantic tileset, there would be few tile layers but more tile...
  19. Coded Games

    Persistent rooms change object depth

    So one thing I just noticed is that if I switch away from a persistent room and then switch back to it the depth of some objects get changed. You can see this happening in this video: https://gyazo.com/d92e7fe0d38b8de2fd73c0b36e664508 Do you guys think this is a bug or should I just accept that...
  20. jf_knight

    Legacy GM Layers to surface substitution [solved]

    I bought a project off the marketplace and I'm translating the code from GM2 to Game maker 1.4. I realized that GM2 one can manipulate layers much easier, however in GM1.4 you cannot. Functions for surfaces are available. Would it be possible to substitute the uses of surfaces instead of layers...
Top