Interface IDirectionalAnimation
Allows grouping animations for different directions together (for example, walking left and right). This is used by the character when choosing a directional animation: if you don't assign all of the directions, the engine will attempt to choose the best direction based on what you have assigned. So, for example, if you only assign Left and Right animations for your walk animation, and the player is attempting to walk down-right, the engine will use the Right animation.
Namespace: AGS.API
Assembly: AGS.API.dll
Syntax
public interface IDirectionalAnimation
Properties
| Improve this Doc View SourceDown
Gets or sets the down direction animation.
Declaration
IAnimation Down { get; set; }
Property Value
| Type | Description |
|---|---|
| IAnimation | The down direction animation. |
DownLeft
Gets or sets the down and left direction animation.
Declaration
IAnimation DownLeft { get; set; }
Property Value
| Type | Description |
|---|---|
| IAnimation | The down and left direction animation. |
DownRight
Gets or sets the down and right direction animation.
Declaration
IAnimation DownRight { get; set; }
Property Value
| Type | Description |
|---|---|
| IAnimation | The down and right direction animation. |
Left
Gets or sets the left direction animation.
Declaration
IAnimation Left { get; set; }
Property Value
| Type | Description |
|---|---|
| IAnimation | The left direction animation. |
Right
Gets or sets the right direction animation.
Declaration
IAnimation Right { get; set; }
Property Value
| Type | Description |
|---|---|
| IAnimation | The right direction animation. |
Up
Gets or sets the up direction animation.
Declaration
IAnimation Up { get; set; }
Property Value
| Type | Description |
|---|---|
| IAnimation | The up direction animation. |
UpLeft
Gets or sets the up and left direction animation.
Declaration
IAnimation UpLeft { get; set; }
Property Value
| Type | Description |
|---|---|
| IAnimation | The up and left direction animation. |
UpRight
Gets or sets the up and right direction animation.
Declaration
IAnimation UpRight { get; set; }
Property Value
| Type | Description |
|---|---|
| IAnimation | The up and right direction animation. |
Methods
| Improve this Doc View SourceGetAllDirections()
Allows to iterate on all assigned directions.
Declaration
IEnumerable<IAnimation> GetAllDirections()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<IAnimation> | All assigned directions. |
GetAnimation(Direction)
Gets the animation matching with a specific direction.
Declaration
IAnimation GetAnimation(Direction direction)
Parameters
| Type | Name | Description |
|---|---|---|
| Direction | direction | Direction for which we want the matching animation. |
Returns
| Type | Description |
|---|---|
| IAnimation | The matching animation |