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

layers

  1. R

    GameMaker Move between layers

    Hi, I'm having some troubles with the layer_element_move(); function. Let's hope you can help me. I have 2 layers one for instances that are near a lightsource, and other layer behind the darkness to the instances that are still not lit. So i want to move one instance between layers, if they...
  2. Bulletech

    Discussion [SOLVED] Handling Top-Down Depth?

    Thinking of a top-down game like Pokemon, where the closer the player is to the bottom of the screen, the lower their depth, AKA they appear in front of objects higher on the screen. In GM:S 1.x you can simply code this by putting depth = -y; in the step event for example. But for GMS 2, with...
  3. S

    Question - Code Some layer functions do not work

    Hi I'm working with version 2.0.7.171, Windows Platform. The following code do not produce expected result: var layerId = layer_get_id("Background"); layer_set_visible(layerId, false); // or // var bg = layer_background_get_id(layerId); // layer_background_visible(bg, false); Layer does not...
  4. M

    GML Replacing all tiles on tilemap with solid object

    I've been trying to make a platformer with an object that I use as a solid wall for any solid objects. Instead of making the whole stage it'd be easier to replace all the tiles on the tilemap with the solid automatically so i dont have to update it all the time. I've made some progress (i think)...
  5. P

    Ordering of Instance_Create

    I am currently trying to make a drawing game and i am still fairly new to game maker. I have made it so that when the left mouse button is held, an new instance is created drawing a line.However, when working with other colours, the layering is in the order of the the code. E.g if...
  6. K

    GameMaker [Solved] Equivalent of instance_create_layer() but for tilemaps?

    tl;dr version: Does anyone know how to take an existing blank tile layer, and an existing tile map, select a tile from the tilemap, and push that onto the tile layer? (update: Nevermind, solution is below).
  7. Flashpants

    GameMaker Depth/layering issue

    Hi I've just upgraded to GMS2. My game is top down/2D style and I previously relied on "depth = -y" for depth control but this was causing lots of flickering in GMS2. I read about an alternative method (that does not flicker) here...
  8. D

    GameMaker Tile Layer Dynamic Visibility

    Hey guys, So i am working on a project at the moment, an rpg type from the top down view angle (think the way pokemon is set up). To create the world i have a number of different tile layers set up so that i can layer tiles over each other to create structures. Some of these structures, for...
  9. D

    Collision Layers (May be the wrong term)

    So basically I have an object that I have set the collision mask to cover the entire screen, because that object needs to preform an operation anytime you click somewhere on the screen. But I have icons on the screen for things like the menu and setting. I was wondering how I could make it so...
  10. K

    GameMaker [Solved] Question: One Layer, Multiple Instances with different depth?

    Edit 1: As far as i can tell layers work in a way that they have a fixed depth and only can contain instances with that depth. As a result creating instances on a layer has little effect when you change the depth of them afterwards. To work around this i created a global variable which i made an...
  11. S

    Shaders Shaders and backgrounds

    Can i make a shader only appear in the background? I mean, below objects? I have i light ray effect but i only want it to be in the background. Thanks for the help :)
  12. M

    Legacy GM Help =D How make layers of objects, and make them dissapear.

    Hi o/ I'm trying to do a game where the player need to click on the eggs to find the easter bunny and in the game will have like 10 layers of eggs one under each other. I made three layers nicely, but when i click to make one egg disappear, all eggs disappear not just the one from the upper...
  13. M

    Colorizing Sprite Layers & Importing Layered Sprites

    Does anyone know if there is an easy way to colorize or even address individual sprite layers? Also, is there any way to import assets from programs such as Piskel with the layers intact? I'm asking, because I'm trying to have character customization as a feature in my game. In GMS2 we finally...
  14. I

    Question - Code Depth and Layers in GMS:2

    GameMaker 2 overhauled and improved the layering and depth system. At the moment I can't get my head around the new system. I've read the manual regarding how the new layers work and how its more efficient, but I just can't seem to get the objects and tiles in my room to draw in the correct...
  15. Posh Indie

     [Suggestion] Room Editor Layer Transparency

    With layer transparency we could easily line things up with the layer above or below the one we are currently working on, while still keeping the focus of the room editor on the one we are working on. A use for this could be for, say, seamless transition from the first floor to the second floor...
  16. T

    Question - GML Visual Moving assets between layers

    I just got GMS2 because the layer-based room editor looked like a great improvement. I tried to import a project of mine and rework my old room setups. Tried to rename the layers that were automatically generated during import of the old project and create some new ones to reorganize everything...
  17. D

    Question - Code instance_create_layer() issues

    Hi all, I've been having some issues with instance_create_layer() and wanted to see if anyone else was also experiencing issues. Straight off it appears that there is a small typo on the documentation located here whereby the 'obj' for the final argument is written down as 'y'. The bigger issue...
  18. M

    GameMaker Question about new Layer System and Depth

    Hey there~ I've searched for an answer in the manual, the forum and on tutorials but i didn't found one. With the new Layer System in GMS2, i am wondering how to get a similiar effect like with depth = -y i know i could just use "-y" but i am worried it might be slow and not the way it's meant...
  19. W

    Discussion Persistent layers

    What's is the best way to deal with layers and persistent objects in GMS2? I've found when moving a persistent object to a new room it's layer don't follow. My solution in testing has been to find a suitable new layer, moving the object in the room start event. The objects in question for me...
  20. C

    Windows Layers don't work properly in the sprite editor?

    I wanted to create a character animation using separate layers for front arm, front leg, back arm, back leg, etc. However, when I create a new frame the images start switching themselves to other layers and it gets extremely glitchy. Has anyone else had this problems/found a way to get around it?
Top