draw order

  1. David Lorenz

    SOLVED Deactivating/Reactivating Layer Messes up its Objects' Draw Order

    Hello, everyone! I tried to search for a solution to this problem, but all I found are other people having the same problem. So, I have a deactivation/reactivation system that deactivate instances far from the player's view and reactivates when they are close enough. The problem is that...
  2. L

    Thoughts on a semi-universal drawing order around the player object?

    Hey everyone! I believe this is my first time posting here (second actually lmao) and wanted some advice on a bit of code that I've made to always correctly display object sprites or w.e on the screen based on their location around the player. Below is a bit of code designed to work anywhere in...
  3. N

    Sprite Draw Order - Depth

    So, I have an object A (depth = -2) and it draws itself in the draw event: draw_sprite_ext(sprite_index,image_index,x,y+yoffset,image_xscale,image_yscale,image_angle,c_white,1); Then I have another object, object B (depth = -4) drawing this in the draw event: draw_set_color(c_black)...
  4. 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...
  5. S

    Draw Sprites in Order in 3D

    I've managed to get 3D and billboarded sprite objects working, but I need to sort the objects by their distance to the camera (farthest to nearest), seems like GMS2 doesn't do that by default anymore. What is the best and fastest method to do so? Also, how can I avoid drawing objects outside of...
  6. J

    GameMaker Changing the Draw order of the Asset Layer

    Hi, I've been dynamically adding sprites to an asset layer, to use it as Decals, the performance was very good from my tests (Over 3000 Sprites and no signs of slow down). But, when I add an Sprite, the sprite is drawn BELOW the sprites added previously, and I haven't found a way to change the...
  7. andev

    GML [Spine] Change the draw order at runtime?

    I've had a good look in the manual, but I don't seem to be able to find any way to change the order that the attachments get drawn through code. Is there any way to achieve this, or perhaps a hacky workaround if it isn't immediately possible? Failing that, are there any intentions to implement...
  8. T

    GameMaker drawing order: sprites and order table

    hi, for my 2.5d game i use an order table (like the dungeon demo) for the drawing order. It works pretty well. How can i get an extra sprite in the drawing event in front of the object sprite. I have learned that all sprites in the draw event after the draw_self() are drawn in front of the...
  9. S

    Legacy GM [SOLVED / FOUND BUG IN GM] Depth / Drawing order is not working properly

    Gamemaker is ignoring depth or drawing order, I have tried with using just the draw event of each object normally and also an object that does this in the End Step: with (all) depth = -bbox_bottom that didn't work so I also tried with a priority queue and populating it each frame and then...
Top