CAOS Language Guide

Camera Commands

Macro

Description

These commands all move the game window (camera) or return information about it.

SYS: CMRP x y

CaMeRa Pan. Similar to the macro SYS: CMRA. Moves the camera to the specified x and y position. If that location is within the window view then the camera smooth scrolls to this position, otherwise the camera jumps to that location. This command does not effect the users choice of scrolling mode.

Command only

SYS: CMRA x y

Position camera with this co-ordinate as the top-left

Command only

SYS: CAMT

Positions camera to point at current TARG

Command only

CMRX

CaMeRa centre X co-ordinate. The centre x co-ordinate of the camera in world co-ordinates.

RValue only

CMRY

CaMeRa centre Y co-ordinate. The centre y co-ordinate of the camera in world co-ordinates.

RValue only

SYS: WPOS x y width height

Attempt to position the game window, with the top left corner being at (x,y) of the screen and the window having dimensions width and height.

Command only



Creatures 2 CAOS Language Guide

Introduction

Macro Commands

Reference