Core API Reference: World General

From Color Infection Wiki

Jump to: navigation, search


Contents


Restart Level

Restart Level

Input Parameters:

(none)

Output Parameters:

(none)
Is Level Paused?

Whether or not the level paused.

Input Parameters:

(none)

Output Parameters:

Paused?
true for paused, false for playing.
Set Level Paused?

Set level paused or not.

Input Parameters:

Paused
true for paused, false for playing.

Output Parameters:

(none)
Get Play SpeedX

Get play speed x. Speed x is a non-negative integer. The default value is 2.

Input Parameters:

(none)

Output Parameters:

Speed X
current play speed x
Set Play SpeedX

Set play speed x. Speed x is a non-negative integer. The default value is 2.

Input Parameters:

Speed X
new play speed x to be set

Output Parameters:

(none)
Get World Scale

Get world scale.

Input Parameters:

(none)

Output Parameters:

World Scale
current world scale
Set World Scale

Set world scale.

Input Parameters:

World Scale
new world scale to be set

Output Parameters:

(none)
Get Level Running Milliseconds

Get the milliseconds since a level is started. When the level is restarted, the milliseconds will be reset to zero.

Input Parameters:

(none)

Output Parameters:

Running Milliseconds
the milliseconds since the player is started/restarted.
Get Level Simulation Steps

Get the simulation steps since a level is started. When the level is restarted, the steps will be reset to zero.

Input Parameters:

(none)

Output Parameters:

Simulation Steps
the steps since the player is started/restarted.
Get Mouse Position

Get the mouse position.

Input Parameters:

(none)

Output Parameters:

Mouse X
the mouse coordinate x in world
Mouse Y
the mouse coordinate y in world
Personal tools