![]() |
Platformer Pro
2.3.2
A platform game kit for Unity.
|
Ground movement_ digital. More...
Public Member Functions | |
override Movement | Init (Character character, MovementVariable[] movementData) |
Initialise the mvoement with the given movement data. More... | |
override string | PostInitValidation () |
Called after initialisation to check if this movement is configured correctly. Typically used to stop wrapper movements being the default and ending up in infinite loops. More... | |
override bool | WantsGroundControl () |
Gets a value indicating whether this movement wants to control the movement on the ground. Default is false, with control falling back to default ground. Override if you want particular control. More... | |
override void | LosingControl () |
Called when the movement loses control. Override to do any reset type actions. More... | |
override void | DoMove () |
Moves the character. More... | |
override void | PostCollisionDoMove () |
Does any movement that MUST be done after collissions are calculated. More... | |
![]() | |
override void | DoMove () |
Moves the character. More... | |
override void | PostCollisionDoMove () |
Snap to ground if set. More... | |
override Movement | Init (Character character, MovementVariable[] movementData) |
Initialise the mvoement with the given movement data. More... | |
![]() | |
virtual void | ApplySlopeForce () |
Applies slope force. More... | |
virtual float | ApplySlopeSpeedModifier (float speed) |
Adjusts speed to cater for vertical movement More... | |
virtual float | GetSpeed (float baseSpeed) |
Gets the ground speed. More... | |
virtual float | GetRunSpeed (float baseRunSpeed) |
Gets the run speed. More... | |
virtual float | GetAcceleration (float baseAcceleration) |
Gets the acceleration. More... | |
![]() | |
sealed override Movement | Init (Character character) |
Initialise this movement. More... | |
bool | IsMovementDataDifferent (MovementVariable[] originalMovementData) |
Determines whether this instances movement data is different from the supplied originalMovementData. More... | |
Public Attributes | |
bool | cancelRunOnSideCollisions |
Should we cancel run on side collission or just play a PUSH animation. More... | |
![]() | |
float | speed |
The speed the character moves at. More... | |
Protected Attributes | |
float | tapTimer |
The timer for the first tap (counts down). More... | |
int | tapDirection |
Direction of first tap. More... | |
bool | isRunning |
True if we have started running. More... | |
bool | autoStartRunning |
Should we auto start to run as soon as we next hit the ground More... | |
bool | checkForAutoStart |
Should we check for auto start? More... | |
bool | hittingSides |
Are we hitting the sides? More... | |
![]() | |
Movement | implementation |
The class that will do the movement. More... | |
string | movementType |
The type of movement as a string. More... | |
MovementVariable[] | movementData |
Data that should be applied to the movement type on init. More... | |
Static Protected Attributes | |
const float | secondTapTime = 0.33f |
How long before the second tap has to be entered for this to start. More... | |
const float | switchTapTime = 0.1f |
How long before the switch direction tap has to be done before run stops More... | |
const int | CancelRunOnSideCollisionIndex = 1 |
The index of the cancel run on side collisison. More... | |
new const int | MovementVariableCount = 2 |
The size of the movement variable array. More... | |
![]() | |
const int | SpeedIndex = 0 |
The index for the speed value in the movement data. More... | |
const int | MovementVariableCount = 1 |
The size of the movement variable array. More... | |
const float | DefaultSpeed = 5.0f |
The default speed. More... | |
Properties | |
new static MovementInfo | Info [get] |
Static movement info used by the editor. More... | |
override AnimationState | AnimationState [get] |
Gets the animation state that this movement wants to set. More... | |
![]() | |
new static MovementInfo | Info [get] |
Static movement info used by the editor. More... | |
override AnimationState | AnimationState [get] |
Gets the animation state that this movement wants to set. More... | |
override int | FacingDirection [get] |
Returns the direction the character is facing. 0 for none, 1 for right, -1 for left. This overriden version always returns the input direction. More... | |
![]() | |
new static MovementInfo | Info [get] |
Static movement info used by the editor. More... | |
virtual bool | SupportsSlidingOnSlopes [get] |
Gets a value indicating whether this PlatformerPro.Movement can support automatic sliding based on the characters slope. More... | |
![]() | |
virtual string | MovementType [get, set] |
The type of movement as a string. More... | |
virtual MovementVariable[] | MovementData [get, set] |
Data that should be applied to the movement type on init. More... | |
new static MovementInfo | Info [get] |
Static movement info used by the editor. More... | |
override bool | Enabled [get, set] |
A custom enable which base movements can use to pass on enable values. More... | |
override Movement | Implementation [get] |
Gets the underlying implementation. More... | |
Additional Inherited Members | |
![]() | |
virtual void | SnapToGround () |
Snaps the character to the ground. More... | |
Ground movement_ digital.
override void PlatformerPro.GroundMovement_DigitalDoubleTapRun.DoMove | ( | ) |
Moves the character.
override Movement PlatformerPro.GroundMovement_DigitalDoubleTapRun.Init | ( | Character | character, |
MovementVariable[] | movementData | ||
) |
override void PlatformerPro.GroundMovement_DigitalDoubleTapRun.LosingControl | ( | ) |
Called when the movement loses control. Override to do any reset type actions.
override void PlatformerPro.GroundMovement_DigitalDoubleTapRun.PostCollisionDoMove | ( | ) |
Does any movement that MUST be done after collissions are calculated.
override string PlatformerPro.GroundMovement_DigitalDoubleTapRun.PostInitValidation | ( | ) |
Called after initialisation to check if this movement is configured correctly. Typically used to stop wrapper movements being the default and ending up in infinite loops.
|
virtual |
Gets a value indicating whether this movement wants to control the movement on the ground. Default is false, with control falling back to default ground. Override if you want particular control.
true
false
true
, if ground control was wantsed, false
otherwise.Reimplemented from PlatformerPro.GroundMovement.
|
protected |
Should we auto start to run as soon as we next hit the ground
|
staticprotected |
The index of the cancel run on side collisison.
bool PlatformerPro.GroundMovement_DigitalDoubleTapRun.cancelRunOnSideCollisions |
Should we cancel run on side collission or just play a PUSH animation.
|
protected |
Should we check for auto start?
|
protected |
Are we hitting the sides?
|
protected |
True if we have started running.
|
staticprotected |
The size of the movement variable array.
|
staticprotected |
How long before the second tap has to be entered for this to start.
|
staticprotected |
How long before the switch direction tap has to be done before run stops
|
protected |
Direction of first tap.
|
protected |
The timer for the first tap (counts down).
|
get |
Gets the animation state that this movement wants to set.
|
staticget |
Static movement info used by the editor.