M
Mobie
Guest
I have an idea for code that might center my game in any browser, but I need to assign the display width to a variable to do it. When I try use display_get_width to do it, I get this error message:
Object: obj_main_menu_text Event: Step at line 2 : cannot use function/script name for a variable, using "display_get_width"
I know GMS2 has built in settings to center and size your window, but they don't work in HTML5. (at least, I can't get them to work)
Object: obj_main_menu_text Event: Step at line 2 : cannot use function/script name for a variable, using "display_get_width"
I know GMS2 has built in settings to center and size your window, but they don't work in HTML5. (at least, I can't get them to work)
Code:
w = display_get_width