J
Jordan Robinson
Guest
I might just be missing something obvious, but for the life of me I cannot get this to work.
In this example, I am attempting to use a surface to draw a black rectangle in the top left corner of the room from the draw_end event of an instance.
This does not appear to do anything. Am I missing something obvious? If I just put
then it draws the black rectangle as intended.
In this example, I am attempting to use a surface to draw a black rectangle in the top left corner of the room from the draw_end event of an instance.
Code:
var surface = surface_create(_game_width, _game_height);
surface_set_target(surface);
draw_rectangle(0, 0, _game_width, _game_height, false);
surface_reset_target();
draw_surface(surface, 0, 0);
surface_free(surface);
Code:
draw_rectangle(0, 0, _game_width, _game_height, false);