TRpgVehicle.setSprite

TURBU

TRpgVehicle.setSprite

 

Class

TRpgVehicle

 

Syntax

procedure setSprite(filename: string; index: byte);

 

Description

This method changes the vehicle's current sprite (graphics set).  It first checks to see if index falls within the acceptable range (1..8) and if a CharSet file is available with the name given by filename.  If either test fails, nothing happens.  Otherwise, it sets the vehicle's sprite to the appropriate sprite from that charset.

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