TRpgHero.setSprite

TURBU

TRpgHero.setSprite

 

Class

TRpgHero

 

Syntax

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

 

Description

This method changes the hero'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 hero's sprite to the appropriate sprite from that charset.

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