Game Maker Studio: How to Click on a Button for Full Screen?

Channel:
Subscribers:
268
Published on ● Video Link: https://www.youtube.com/watch?v=VLY8Qm8xOEk



Duration: 6:56
130 views
0


Visit my Game Jolt site: https://bit.ly/3i6iSdF

Paypal Donate: https://bit.ly/30e8VDZ

GMS File: https://bit.ly/3m6po6C

Note: This code is useful, say you want to have a button link to a website. Well, for some reason, Game Maker does not show the browser window in front of you're game when your game is in Full Screen. So, with my games, I would not make my Splash Screen nor my Intro page Full Screen, because in those spots, there would be a link to my website. Then, when you press the Start button, then it would go Full Screen. When the game is not in Full Screen meaning, you have a white bar at the top of your game, allowing you to minimize or scale your screen. So, when its not Full Screen, then your browser window will be put in front of you're game.

Note: This will only work for Windows. I tried it with Android, it does not work. Be nice if I could find something about how to hide the navigation bar on Android, while playing a game.

obj_button

Events:

Left Pressed

Actions:

window_set_fullscreen(false);////scales it back.

Events:

Press Spacebar

Actions:

window_set_fullscreen(true); ////scales it to fullscreen.







Tags:
how
learn
teach
game
maker
studio
windows
pc
computer
scale
screen
full
button
click
window
spacebar
bar
space
mouse
press
pressed
set
setting
globel
settings
option
size
border
width
height
project
move
open
close