Method | Description | |
---|---|---|
FreeMovingSprite ( ) : System | ||
FreeMovingSprite ( int x, int y ) : System | ||
FreeMovingSprite ( int x, int y, float speed, float accel ) : System | ||
FreeMovingSprite ( int x, int y, int width, int height ) : System | ||
FreeMovingSprite ( int x, int y, int width, int height, float speed, float accel ) : System | ||
cancelMoveToDestination ( ) : void | ||
getAcceleration ( ) : float | ||
getSpeed ( ) : float | ||
move ( Direction dir, float elapsed, bool collide = true ) : bool |
Moves this Sprite a given Direction. Optional parameter sets it to collide with the scene and characters in the scene.
|
|
move ( float angle, float elapsed, bool collide = true ) : bool |
Moves this Sprite a given angle (0 to 2 pi). Optional parameter sets it to collide with the scene and characters in the scene.
|
|
moveToDestination ( int x, int y, System.Action postExecute, bool collide = false ) : void | ||
moveToDestination ( int x, int y, float time, System.Action postExecute, bool collide = false ) : void | ||
reset ( ) : void | ||
setAcceleration ( float accel ) : void | ||
setSpeed ( float speed ) : void | ||
update ( float elapsed ) : void |
Method | Description | |
---|---|---|
moveAngleHelper ( float angle, float speed, float elapsed, bool collide = true ) : bool | ||
moveDirectionHelper ( Direction dir, float speed, float elapsed, bool collide = true ) : bool |
public FreeMovingSprite ( int x, int y ) : System | ||
x | int | |
y | int | |
return | System |
public FreeMovingSprite ( int x, int y, float speed, float accel ) : System | ||
x | int | |
y | int | |
speed | float | |
accel | float | |
return | System |
public FreeMovingSprite ( int x, int y, int width, int height ) : System | ||
x | int | |
y | int | |
width | int | |
height | int | |
return | System |
public FreeMovingSprite ( int x, int y, int width, int height, float speed, float accel ) : System | ||
x | int | |
y | int | |
width | int | |
height | int | |
speed | float | |
accel | float | |
return | System |
public move ( Direction dir, float elapsed, bool collide = true ) : bool | ||
dir | Direction | Direction to move the Character |
elapsed | float | Time that has elapsed since last update, in seconds |
collide | bool | Specifies whether the Sprite should collide with objects in the scene |
return | bool |
public move ( float angle, float elapsed, bool collide = true ) : bool | ||
angle | float | Angle in radians, from 0 to 2 pi, to move the Character |
elapsed | float | Time that has elapsed since last update, in seconds |
collide | bool | Specifies whether the Sprite should collide with objects in the scene |
return | bool |
public moveToDestination ( int x, int y, System.Action postExecute, bool collide = false ) : void | ||
x | int | |
y | int | |
postExecute | System.Action | |
collide | bool | |
return | void |
public moveToDestination ( int x, int y, float time, System.Action postExecute, bool collide = false ) : void | ||
x | int | |
y | int | |
time | float | |
postExecute | System.Action | |
collide | bool | |
return | void |
public setAcceleration ( float accel ) : void | ||
accel | float | |
return | void |