Adventure Creator  1.66.1
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2018
AC.SpriteDirectionData Class Reference

Public Member Functions

 SpriteDirectionData (bool doDirections, bool doDiagonals)
 
void ShowGUI ()
 
string GetExpectedList (AC_2DFrameFlipping frameFlipping, string animName, string indexString="")
 
bool HasDirections ()
 Checks if the character sprite makes use of directions More...
 
string GetDirectionalSuffix (float angle)
 Gets the directional suffix (i.e. "D" for Down, "UR" for Up-right) for the sprite direction that best matches the given angle More...
 

Properties

bool IsUpgraded [get]
 

Constructor & Destructor Documentation

◆ SpriteDirectionData()

AC.SpriteDirectionData.SpriteDirectionData ( bool  doDirections,
bool  doDiagonals 
)

The default Constructor. This takes the now-deprecated values of the Char script's doDirections and doDiagonals variables to generate initial values.

Member Function Documentation

◆ GetDirectionalSuffix()

string AC.SpriteDirectionData.GetDirectionalSuffix ( float  angle)

Gets the directional suffix (i.e. "D" for Down, "UR" for Up-right) for the sprite direction that best matches the given angle

Parameters
angleThe angle, in degrees. This starts at 0 when downward, and rotates clockwise to 360 for a complete revolution.
Returns
The directional suffix (i.e. "D" for Down, "UR" for Up-right) for the sprite direction that best matches the given angle

◆ HasDirections()

bool AC.SpriteDirectionData.HasDirections ( )

Checks if the character sprite makes use of directions

Returns
True if the character sprite makes use of directions

Property Documentation

◆ IsUpgraded

bool AC.SpriteDirectionData.IsUpgraded
get

Checks if this data has been upgraded from AC v1.66.0 or earlier. The upgrade process should be automatic.