D
Drago Supremo
Guest
Hi guys,
i'm trying to make a pause menu with the game paused in the background.
Actually what i'm trying to do is to take a screenshot making a sprite of the surface and then drawing it on the screen.
This is in the Draw Event of the Player object.
The problem is that when i try to draw the screenshot it's not haligned with the view as shown below:
The area evidenced in red is the screenshot.
I've already tried changing the coordinate in which the sprite is drawn(view_xview, view_xport...) but nothing seems to work
i'm trying to make a pause menu with the game paused in the background.
Actually what i'm trying to do is to take a screenshot making a sprite of the surface and then drawing it on the screen.
Code:
if (pause)
{
if !(sprite_exists(screenshot))
{
screenshot = sprite_create_from_surface(application_surface, 0, 0, view_wport, view_hport, false, false, 0, 0);
}
draw_sprite_ext(screenshot, 0, 0, 0, 0.5, 0.5, 0, c_white, 1);
instance_deactivate_all(true);
}
The problem is that when i try to draw the screenshot it's not haligned with the view as shown below:
The area evidenced in red is the screenshot.
I've already tried changing the coordinate in which the sprite is drawn(view_xview, view_xport...) but nothing seems to work