Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(3 edits)

Do you have a background layer as well? I've had a few people send me similar things after the newest GM update. Looks like the background isn't clearing. You could try (in a pre-draw event) to do:

surface_set_target(application_surface);
draw_clear(c_black);
surface_reset_target();

Maybe that will solve the issue? I will look into this further!

Edit

  • Check that 'Clear display buffer' is ON
  • Also, you could just draw a black rectangle behind everything in the RenderPipeline draw event right before the script pipeline_render() and set the z-writing to false like so:
gpu_set_ztestenable(false);
gpu_set_zwriteenable(false);
draw_set_color(c_black);
draw_rectangle(0,0,window_get_width(), window_get_height(), false);
gpu_set_ztestenable(true);
gpu_set_zwriteenable(true);
(1 edit)

Yes, maybe it's a bug of the newest GMS23

Solved through your code.

TKS!


And can create another default background layer under your BackFloor to solve this issue as same as you.

Okay cool. Well I just tried it (see other comment) and I couldn't seem to re-create the issue. I'm running GM:

IDE v2.3.2.560

Runtime v2.3.2.426

Haven't tried it with the BETA though. Glad it was solved! :D