if (surface_exists(overlay_surface)) surface_free(overlay_surface); if (sprite_exists(overlay_sprite)) sprite_delete(overlay_sprite);