view.X
view.y
view.z

Position of the view in the map. Can only be set by functions. The X position can also be used as a vector.

Range

unlimited inside a Level (default: 0)

Type:

var
.x
also as vector

Example:

function camera_1st_view()
{
  while(player)
  {
    vec_set(camera.x, player.x);			// copy player position to camera position
    vec_set(camera.pan, player.pan); // copy player direction to camera direction
    wait(1);
  }
}

function camera_start()
{
  camera.x = 10;			// X-Position in View = 10
  camera.y = 100; // Y-Position in View = 100
  camera.z = 0;			// Z-Position in View = 0
}	

See also:

layer, pos_x, pos_y, size_x, size_y, pan, tilt, roll, arc, aspect, offset_x, offset_y, ambient, fog, fog_start, fog_end, alpha, genius, portal, flags