lazybraingames
Member
Hi all! I'm working on a game that uses the Box2D physics. So, for pausing, I'm using the functions physics_pause_enable and then instance_deactivate_all and I then create a pause controller object which works fine for controlling the pause menu - functionally everything is good, this issue is purely graphical.
The issue is that the active objects within the pause menu don't stop drawing if they are destroyed/aren't visible etc. I assume this is because they're overlaid on deactivated objects, but I'm not sure what the remedy is redraw the screen beneath these active objects properly. Is there a technique to ensure objects are drawn properly above deactivated ones?
Thanks for reading,
The issue is that the active objects within the pause menu don't stop drawing if they are destroyed/aren't visible etc. I assume this is because they're overlaid on deactivated objects, but I'm not sure what the remedy is redraw the screen beneath these active objects properly. Is there a technique to ensure objects are drawn properly above deactivated ones?
Thanks for reading,