Skip to content

Advanced Controls (Keyboard and GamePad)

Compare
Choose a tag to compare
@BlizzCrafter BlizzCrafter released this 04 Sep 15:26
· 175 commits to master since this release
  • It's now possible to have Keyboard and GamePad input at the same time.
  • It's now possible to add multiple keys or buttons to the SplineWalker; just one of those buttons can be pressed at the same time.
  • Renamed AlreadyTriggered to CanTrigger in the SplineWalker class.
  • Made sure that we have the _currentTriggerIndex value higher than -1 to avoid out of range bugs.
  • Fixed a bug where the current trigger index went wrong when quickly changed the walking direction.
  • Added Tank class (SplineWalker) and TankTrack BezierSpline to show the new input features.
  • It's now possible to control a SplineWalker with a Keyboard and a GamePad.
  • Renamed Mode to WalkerMode in the SplineWalker class.
  • A SplineWalker can now trigger events in different directions. For example only when he travels forward, backward or forward and backward.
  • A SplineWalker can now perform a turn (rotating 180 degrees) when walking in the opposite direction (PingPong WalkingMode).
  • Added new sample project AdvancedControls.cs