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

depth

  1. A

    GameMaker Depth in GM:S2

    So I am trying to learn how to make an RPG, using Game Maker 2 on my Macbook. I'm following HeartBeasts tutorials, and so far everything is working out great. Except with depth of the player object, relative to an enemy object. For some reason I just can not get it to work correctly. The effect...
  2. J

    GameMaker Particles issue [SOLVED]

    So, I am pretty new with Game Maker, and I have been struggling with particle system recently. I did some bunch of code, and it seems to be working, but, for some reason, there are some issues with particles - first, they are not drawn on any light colors and second, they are being overlapped by...
  3. Gigicom

    GameMaker [SOLVED] Set depth for individual tiles

    Hello Last few days I was searching all over Google for a way of setting the depth (basically like with depth = -y for objects) for an individual tile. I saw lots of threads, but most of them just ended with links to other tutorials that only used the layer depth or the tile_set_depth function...
  4. 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...
  5. S

    GameMaker How to draw particles not affected by the surfaces above them?

    I know its possible to just draw particle system above the lighting surfaces, but I really need to preserve depth order. Here's a screenshot of current situation: Particles on hand and sword are too dim, but the depth is ok. And here's how they look when being drawn above everything: Bright and...
  6. S

    GameMaker Fake 3D Depth Sorting Riddle

    Since fake 3D is harsh on fps I've made so every world chunk generates one huge surface with all of the objects inside it, instead of drawing every object separately. It reduced draw calls by a lot, but now I am out of ideas on how to draw moving objects under or above some of the static fake 3d...
  7. MIchael PS

    Legacy GM Surface depth

    So hello, I want to draw a surface under certain objects. I tried changing the depth of the object that draws the surface, but it doesn't work... Any suggestions? Thanks a lot!
  8. Fixer90

    GameMaker Auto-Depth System

    To start off, I have an object called settings which is a persistent object that is there at the very start of the game. Is there a way I could set it up to automatically and constantly update every object's depth, such that objects that are lower in a room have a slightly lower depth, making...
  9. E

    Legacy GM how to check depth from other object

    hey guys, having a error trying to check the depth from another object, says for an error "unexpected epression" code is below. anyone know why? thanks -EZ if place_meeting (x,y, obj_oilman_2) && with obj_oilman_2 depth = -101; { image_speed = 0.1; }
  10. E

    GameMaker How to change the value of all objects inside an array

    Hey GameMaker community! So I'm trying to make a basic script that assures that shadows will always appear in front of the player but always appear behind the object they're the shadow of. For this I'm making code that, when the shadow collides with the player, changes the depth value of the...
  11. E

    GameMaker "Trying to draw non-existing sprite" error while using variable

    Hey GameMaker Community! I've been working on a top-down game and have run into an issue with the depth system. I have two scripts that seem to be causing this error: scr_create_draworder, which creates the draw_order and draworder_size variables I'm using to store the grid size, as well as the...
  12. 2

    GameMaker Studio 2: Finding Top Most Drawn of All Instances at Mouse Cursor on Click

    I need to make something that will return the top most instance where the mouse cursor is currently clicking. This is probably different in Studio 2, so how would I adapt the code below? It doesn't matter if the draw order is always the same, just that I can find from multiple instances at the...
  13. Didjynn

    particles over my draw event

    Hello everyone, I have an object drawing some sprites and emetting some particles. The particles options are set in the create event. The first game, particles are under all my sprites, which is what I want. But if I make another game/match, the particles are over it. In the create event I...
  14. K

    Windows check if player is below object?

    So I'm making a top-down RPG and I'm trying to make a tree object. Is there a way to detect whether the player is above or below this object, and change the depth based on this?
  15. 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...
  16. V

    Isometric help (collision and depth)

    I've been struggling to determine the best way to have collisions and depth for an isometric game my team is making. I've been able to get some objects working properly, like a bus, but I had to split the bus into two parts, so I could also use a diamond collision mask. However, this game...
  17. MartinK12

    Question - Code Clicking top object – default behavior in GMS2 with manual depth?

    When u want to click top object and did not set depth of those objects the top object will not be clicked but actually the clicked object will be the first one placed in the room. But when you set depth each of those objects manually the object with the lowest depth will always be clicked. I...
  18. 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...
  19. P

    GML Instance Create and Depth

    So when my character gets hurt, he is instance layer create switched with a hurt version of himself, but the instance is a lower depth than the floor model so you can't see him... Does anyone know a fix?
  20. S

    tree shadows under player

    hello. So. i'm using depth = -y to make the effect of going behind trees. My tree is: draw_spire(shadow) draw_self() so the shadow is under the tree. But when my hero goes behind the tree (depth = -y goes into effect), the tree shadow shows on top of the hero. when the hero is in front of the...
Top