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 property
property 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 paused
Boolean 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 x
Number amount to scale the object in the x direction
y
Number amount to scale the object in the y direction
object
object 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 x
Number the x coordinate of the top-left corner of the world
y
Number the y coordinate of the top-left corner of the world
w
Number the width of the game world
h
Number the height of the game world
Code Equivalent:
game.world.setBounds(x, y, w, h);