Property | Type | Description | |
---|---|---|---|
alpha | float | ||
dirty | System.Boolean | ||
finished | System.Boolean | ||
frameHeight | float | ||
frameWidth | float | ||
frames | uint | ||
moving | bool | ||
offset | FlxPoint | ||
origin | FlxPoint | ||
scale | FlxPoint |
Property | Type | Description | |
---|---|---|---|
ImgDefault | Microsoft.Xna.Framework.Graphics.Texture2D | ||
_animated | System.Boolean | ||
_animations | List |
||
_bakedRotation | float | ||
_color | Color | ||
_curAnim | |||
_curFrame | int | ||
_curIndex | int | ||
_facing | uint | ||
_flipped | uint | ||
_frameTimer | float | ||
_matrix | Matrix | ||
camX | float | ||
camY | float | ||
oX | float | ||
oY | float | ||
sourceRect |
Method | Description | |
---|---|---|
FlxSprite ( float X, float Y, Microsoft.Xna.Framework.Graphics.Texture2D Graphic = null ) : System | ||
addAnimation ( String Name, int Frames, float FrameRate = 1, System.Boolean Looped = true ) : void | ||
addAnimationCallback ( Action |
||
centerOffsets ( bool AdjustPosition = false ) : void | ||
destroy ( ) : void | ||
draw ( ) : void | ||
getVec2 ( ) : Vector2 | ||
loadGraphic ( Microsoft.Xna.Framework.Graphics.Texture2D Graphic, System.Boolean Animated = false, System.Boolean Reverse = false, float Width, float Height ) : |
||
makeGraphic ( float Width, float Height, Color color ) : |
||
onScreen ( |
||
play ( String AnimName, System.Boolean Force = false ) : void | ||
postUpdate ( ) : void | ||
reset ( float X, float Y ) : void | ||
update ( ) : void |
Method | Description | |
---|---|---|
calcFrame ( ) : void | ||
resetHelpers ( ) : void | ||
updateAnimation ( ) : void |
public FlxSprite ( float X, float Y, Microsoft.Xna.Framework.Graphics.Texture2D Graphic = null ) : System | ||
X | float | |
Y | float | |
Graphic | Microsoft.Xna.Framework.Graphics.Texture2D | |
return | System |
public addAnimation ( String Name, int Frames, float FrameRate = 1, System.Boolean Looped = true ) : void | ||
Name | String | |
Frames | int | |
FrameRate | float | |
Looped | System.Boolean | |
return | void |
public addAnimationCallback ( Action |
||
AnimationCallback | Action |
|
return | void |
public centerOffsets ( bool AdjustPosition = false ) : void | ||
AdjustPosition | bool | |
return | void |
public loadGraphic ( Microsoft.Xna.Framework.Graphics.Texture2D Graphic, System.Boolean Animated = false, System.Boolean Reverse = false, float Width, float Height ) : |
||
Graphic | Microsoft.Xna.Framework.Graphics.Texture2D | |
Animated | System.Boolean | |
Reverse | System.Boolean | |
Width | float | |
Height | float | |
return |
public makeGraphic ( float Width, float Height, Color color ) : |
||
Width | float | |
Height | float | |
color | Color | |
return |
public onScreen ( |
||
Camera | ||
return | bool |
public play ( String AnimName, System.Boolean Force = false ) : void | ||
AnimName | String | |
Force | System.Boolean | |
return | void |
protected Texture2D,Microsoft.Xna.Framework.Graphics ImgDefault | ||
return | Microsoft.Xna.Framework.Graphics.Texture2D |