PanScreen routine

TURBU

PanScreen routine

 

Pans the screen from the current camera position.

 

Syntax

 

procedure panScreen(direction: TDirections; distance: word; speed: byte; wait: boolean);

 

Description

 

This routine causes the screen to move away from the current position, in the direction specified by direction, by distance number of squares.  The speed parameter indicates the speed at which the screen scrolls, from 1 (slowest) to 6 (fastest).  Passing 0 or any other invalid value causes the scroll speed to remain unchanged.  If true is passed to the wait parameter, the script's execution will pause until the pan is complete.

 

Related topics

TDirections Type

panScreenTo routine

returnScreen routine

This help file was created with the free trial version of HelpScribble.