Manual/aimCamera

From Hungrysoftware

Contents

Syntax

 aimCamera (x, y);

Purpose

Aims the camera so that the point (x, y) is in the centre of the window. If it is not possible to position the camera so that the point is in the centre of the window without the user seeing an area outside of the scene image, the camera is moved to the closest possible valid position.

Return value

No return value.

This function is unavailable to unregistered users of the development kit. To use this function, and for a heap of other benefits, please register your copy of the SLUDGE development kit.

See also

How (and Why) to Register SLUDGE

Scrolling Scenes

getObjectX and getObjectY

setSceneDimensions

Personal tools