GMS 2 Change game options with GML?

Discussion in 'Programming' started by pimeys, Jul 26, 2019.

  1. pimeys

    pimeys Member

    Joined:
    Jul 14, 2019
    Posts:
    8
    Is it possible to change game options like VSYNC, BORDERLESS or TEXTURE PAGE SIZE with GML on-the-fly?

    I would like to give the user settings for things like those, and change it as they wish.
    As for texture page sizes, I would like GMS to generate texture pages at all of the possible sizes, and allow the user to switch between them in the game settings.

    I'm particularly interested in BORDERLESS and VSYNC options though. Any chance to make this work?
     

    Attached Files:

  2. Annoyed Grunt

    Annoyed Grunt Member

    Joined:
    Jun 20, 2016
    Posts:
    136
    There is no built-in way to set border state of the window, but as far as vsync (and antialias) goes you can use display_reset(aa, vsync)
     
    pimeys and Cpaz like this.
  3. pimeys

    pimeys Member

    Joined:
    Jul 14, 2019
    Posts:
    8
    That's unfortunate. But thanks for hinting me to that function :)
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice