Surface copy

Example
surface_copy can be used to clear a surface. This code shows how. //Create Event surface = surface_create(room_width,room_height);

This code creates an event. Now we must make a temporary one and copy it over to this one. //Other Event (Preferably a keyboard button) var temp_surface; temp_surface = surface_create(surface_get_width(surface),surface_get_height(surface)); surface_copy(surface,0,0,temp_surface); surface_free(temp_surface);