SetMultitaskingMode (int mode)
Allows you to set what happens when the user switches away from your game.
If MODE is 0 (the default), then if the user Alt+Tabs out of your game, or clicks
on another window, the game will pause and not continue until they switch back into
the game.
If MODE is 1, then the game will continue to run in the background if the user
switches away (useful if, for example, you are just making some sort of jukebox
music player with AGS).
Note that mode 1 does not work with some graphics cards in full-screen mode, so you
should only rely on it working when your game is run in windowed mode.
Cross-Platform Support
Windows: Yes
MS-DOS: No
Linux: Yes
MacOS: Yes
Example:
SetMultitaskingMode (1);
will mean that the game continues to run in the background.
|