draw order

  1. 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)...
  2. Sozidar

    GMS 2 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...
  3. 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...
  4. Jaqueta

    GMS 2 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...
  5. 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...
  6. T

    GMS 2 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...
  7. 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