This function can be used to set the game speed. You can set this in one of two ways - as either game frames per second (FPS) or as microseconds per game frame (MPF) - using one of the following two constants:
Constant Description gamespeed_fps Sets the game speed using frames per second. gamespeed_microseconds Sets the game speed using microseconds per frame.
So, for example, a game speed of 30 frames per second would be 33333 microseconds per game game frame, which would then be expressed by this function as either:
Argument Description speed The new game speed (as either FPS or MPF). type The type of method used to set the game speed (see the constants above).
if os_browser == browser_not_a_browser
The above code checks to see if the game is running in a browser and sets the game speed accordingly as an FPS value.