Core API Reference: World Camera

From Color Infection Wiki

Jump to: navigation, search


Contents


Set Current Camera

Set the current camera

Input Parameters:

The New Camera Entity
the new camera entity

Output Parameters:

(none)
Get Camera Center

Get camera current position

Input Parameters:

(none)

Output Parameters:

Camera Center X
camera position x
Camera Center Y
camera position y
Get Camera Rotation By Degrees

Get camera current rotation by degrees

Input Parameters:

(none)

Output Parameters:

Camera Rotation
camera current rotation by degrees
Follow Camera With Shape

Make the camera follow a shape. Please read The Camera to learn more.

Input Parameters:

The Followed Shape
the shape to follow
Smooth Following?
follow the specified shape smoothly or not.

Output Parameters:

(none)
Follow Camera Center X With Shape

Make the camera center x follow a shape. Please read The Camera to learn more.

Input Parameters:

The Followed Shape
the shape to follow
Smooth Following?
follow the specified shape smoothly or not.

Output Parameters:

(none)
Follow Camera Center Y With Shape

Make the camera center y follow a shape. Please read The Camera to learn more.

Input Parameters:

The Followed Shape
the shape to follow
Smooth Following?
follow the specified shape smoothly or not.

Output Parameters:

(none)
Follow Camera Center Rotation With Shape

Make the camera rotation follow a shape. Please read The Camera to learn more.

Input Parameters:

The Followed Shape
the shape to follow
Smooth Following?
follow the specified shape smoothly or not.

Output Parameters:

(none)
Fade Out Then Fade In

Create a fade effect.

Input Parameters:

Fade Color
the fading color
Fade Out Steps
number of steps to fade out
Fade Staying Steps
number of steps at the most faded stage
Fade In Steps
number of steps to fade in
Script to Call
the script to be called when reaches the most faded stage. Please read what entity can be used as script parameter to learn more.

Output Parameters:

(none)
Personal tools