Methods
-
get_game_pause()
-
Returns whether or not the game is paused.
Check out the third party documentation for a more in depth explanation.Code Equivalent:
game.paused -
get_world_property(property)
-
Returns the property of the object.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description propertyproperty to get values from
Code Equivalent:
game.world.property -
set_game_pause(paused)
-
Pauses/unpauses the game.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description pausedBoolean sets the game paused to true or false
Code Equivalent:
game.paused = paused; -
set_scale(x, y, object)
-
Sets the scale of the object.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description xNumber amount to scale the object in the x direction
yNumber amount to scale the object in the y direction
objectobject to scale
Code Equivalent:
object.scale.setTo(x, y); -
set_world_bounds(x, y, w, h)
-
Sets the top-left coordinates and size/physical bounds of the game world.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description xNumber the x coordinate of the top-left corner of the world
yNumber the y coordinate of the top-left corner of the world
wNumber the width of the game world
hNumber the height of the game world
Code Equivalent:
game.world.setBounds(x, y, w, h);