<?xml version="1.0" encoding="UTF-8" standalone="yes"?><oembed><version><![CDATA[1.0]]></version><provider_name><![CDATA[Tyrant Haxorus]]></provider_name><provider_url><![CDATA[https://tyranthaxorus.wordpress.com]]></provider_url><author_name><![CDATA[tyranthackrous]]></author_name><author_url><![CDATA[https://tyranthaxorus.wordpress.com/author/tyranthackrous/]]></author_url><title><![CDATA[Gamemaker Studio 2: How To Make Full screen&nbsp;Switching]]></title><type><![CDATA[link]]></type><html><![CDATA[<p><img loading="lazy" data-attachment-id="3474" data-permalink="https://tyranthaxorus.wordpress.com/2017/10/15/gamemaker-studio-2-how-to-make-full-screen-switching/news_image/" data-orig-file="https://tyranthaxorus.files.wordpress.com/2017/10/news_image.png" data-orig-size="1120,640" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="news_image" data-image-description="" data-medium-file="https://tyranthaxorus.files.wordpress.com/2017/10/news_image.png?w=300" data-large-file="https://tyranthaxorus.files.wordpress.com/2017/10/news_image.png?w=1024" class="  wp-image-3474 aligncenter" src="https://tyranthaxorus.files.wordpress.com/2017/10/news_image.png?w=449&#038;h=257" alt="news_image" width="449" height="257" srcset="https://tyranthaxorus.files.wordpress.com/2017/10/news_image.png?w=449&amp;h=257 449w, https://tyranthaxorus.files.wordpress.com/2017/10/news_image.png?w=898&amp;h=514 898w, https://tyranthaxorus.files.wordpress.com/2017/10/news_image.png?w=150&amp;h=86 150w, https://tyranthaxorus.files.wordpress.com/2017/10/news_image.png?w=300&amp;h=171 300w, https://tyranthaxorus.files.wordpress.com/2017/10/news_image.png?w=768&amp;h=439 768w" sizes="(max-width: 449px) 100vw, 449px" /></p>
<p>A good feature for a video game to have is full screen switching. Full screen helps a game feel more immersive and being able to switch out of it helps people who have specific monitor setups. Today will show how you a method for implementing full screen switching.</p>
<p>In Gamemaker Studio 2, make an object and call it o_fullscreen.</p>
<p>Turn persistent on. A persistent object only has to be placed in a room once for it&#8217;s code to run through the whole game.</p>
<p>Make a key press event and set the key to F1. Add the following code:</p>
<p>window_set_fullscreen(!window_get_fullscreen());</p>
<p>In the first room of your game, place o_fullscreen into the Instances layer. o_fullscreen only needs to be put in the first room of your game.</p>
<p>In Options, select the Windows tab. Go into Graphics and change the following:</p>
<p>Allow window resize: ON</p>
<p>Scaling: Full scale</p>
<p>Start fullscreen: OFF</p>
<p>Use synchronization to avoid tearing: OFF</p>
<p>Start the game and press F1 two times. Your game&#8217;s screen should effortlessly switch between window and full screen.</p>
<p><img loading="lazy" data-attachment-id="3505" data-permalink="https://tyranthaxorus.wordpress.com/2017/10/15/gamemaker-studio-2-how-to-make-full-screen-switching/fullscreen-gif/" data-orig-file="https://tyranthaxorus.files.wordpress.com/2017/10/fullscreen-gif.gif" data-orig-size="480,270" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Fullscreen GIF" data-image-description="" data-medium-file="https://tyranthaxorus.files.wordpress.com/2017/10/fullscreen-gif.gif?w=300" data-large-file="https://tyranthaxorus.files.wordpress.com/2017/10/fullscreen-gif.gif?w=480" class=" size-full wp-image-3505 aligncenter" src="https://tyranthaxorus.files.wordpress.com/2017/10/fullscreen-gif.gif?w=480&#038;h=270" alt="Fullscreen GIF" width="480" height="270" /></p>
]]></html><thumbnail_url><![CDATA[https://tyranthaxorus.files.wordpress.com/2017/10/fullscreen-gif.gif?fit=440%2C330]]></thumbnail_url><thumbnail_width><![CDATA[440]]></thumbnail_width><thumbnail_height><![CDATA[248]]></thumbnail_height></oembed>