flyinian
Member
I am using RangerX's pixel perfect tutorial and I've ran into an issue. When the code is active, the masking of my clickable buttons sprites are off centered. Meaning I don't need to be on the button to activate it. The masking offset for each button are in different directions. When the code is not active, the sprite masking is exact.
Thank you.
Code:
//The Create Event Code
application_surface_draw_enable(false);
window_set_fullscreen(true);
global.MonitorW = display_get_width();
global.MonitorH = display_get_height();
global.Xoffset = (global.MonitorW - 640) /2;
global.Yoffset = (global.MonitorH - 360) /2;
if(global.MonitorW >= 1280 && global.MonitorH >= 720)
then
{
surface_resize(application_surface, 1280, 720)
global.Xoffset = (global.MonitorW - 1280) /2;
global.Yoffset = (global.MonitorH - 720) /2;
}
room_goto(RM_mainmenu);
//The Post-Draw code
draw_surface_ext(application_surface, global.Xoffset, global.Yoffset, 1, 1, 0, c_white, 1);