N
NoFontNL
Guest
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);
draw_rectangle(view_xview-32,bbox_bottom+64+1,view_xview+view_wview+32,view_yview+view_hview+32,false);
Now, the object with a depth of -2 (object A) draws the sprite ON TOP of the drawn rectangle by object B.
What's going wrong here?
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);
draw_rectangle(view_xview-32,bbox_bottom+64+1,view_xview+view_wview+32,view_yview+view_hview+32,false);
Now, the object with a depth of -2 (object A) draws the sprite ON TOP of the drawn rectangle by object B.
What's going wrong here?