R
RealsLife
Guest
I've a pixelart game so I've made a pixel perfect script which works.
the viewport stays the same.
If I push 0,1,2,3 the view changes so the viewport is upscalling correctly.
However when I tried to center my for loop drawn menu.
draw_set_halign(fa_center);
draw_set_halign(fa_middle);
these didn't do much
I tried view_wview[0]/2 for the width and view_hview[0]/2 for the height but they didn't center the menu
so in the end it worked with room_width/2 and room_height/2 but this isn't the right way to fix this because
this works only because it is just a menu but it would not work for a GUI for example when a character runs around.
I want to know why the menu didn't center, if someone could explain please I love game maker studio and want to learn as much as I can :O!
After this the main menu is 100% finished code wise hehe !
the viewport stays the same.
If I push 0,1,2,3 the view changes so the viewport is upscalling correctly.
However when I tried to center my for loop drawn menu.
draw_set_halign(fa_center);
draw_set_halign(fa_middle);
these didn't do much
I tried view_wview[0]/2 for the width and view_hview[0]/2 for the height but they didn't center the menu
so in the end it worked with room_width/2 and room_height/2 but this isn't the right way to fix this because
this works only because it is just a menu but it would not work for a GUI for example when a character runs around.
I want to know why the menu didn't center, if someone could explain please I love game maker studio and want to learn as much as I can :O!
After this the main menu is 100% finished code wise hehe !