GameMaker Problem with drawing depth

Max19871

Member
Hi all, i've few layers and at depth 200 a layer called "FX", after that the last one is Background layer. On FX Layer i've an instance called oDraw, and i would like to use this to call some drawing from other game objects to be draw on this layer.
Example: On the very top layer i've an instance, in draw event i call:

Code:
with(oDraw)
{
    draw_set_color(c_blue);
    draw_rectangle(0, 0, room_width / 2, room_height / 2, false);
}
But it draw at same depth of calling instance, in front of all, and not in background ad depth 200 of the layer where oDraw is. If i remember correctly, with gamemaker 1.4 i've done it, but with GMS2 it does'nt work.
 
Top