Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Window Commands for GameMaker

Check/disable/dispatch window commands in GameMaker · By YellowAfterlife

Mouse Press

A topic by ALoFiArtist created May 12, 2022 Views: 172 Replies: 1
Viewing posts 1 to 2

For some reason the window_command_run function won't work if inside a mouse_check if statement. 

for example, this doesn't work even in the example project:

if(mouse_check_button_pressed(mb_left)) window_command_run(window_command_maximize);

Developer

Windows will not let you perform some operations while a mouse is being held on a window as this would cause a click through to a window behind it - you’ll need to wait until the mouse release event.