Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
0.8.4:charactercontrolling [2022/06/21 21:38] – [Optionally linkable components] admin0.8.4:charactercontrolling [2022/06/21 21:38] (current) – [Audio Manager Controller] admin
Line 200: Line 200:
   * [[animationcontroller|TGorillaAnimationController]]   * [[animationcontroller|TGorillaAnimationController]]
  
-==== Audio Manager Controller ==== 
  
-The audio manager controller is an exchange layer between your character controller and an audio manager. 
-You can playback sounds automatically, without any programming, by a configured hotkey map or a soundmap. 
- 
-The following example showing how to setup an audio manager controller at runtime. Here we show the usage of  
-an input stated handling by keyboard input. 
- 
-<file pascal> 
-FAudioCtrl := TGorillaAudioManagerController.Create(Self); 
-FAudioCtrl.AudioManager := Self.FAudioManager; 
-FAudioCtrl.AddHotKeyMapping('RUN_FORWARD',  SOUND_RUN, 
-  TGorillaCharacterControllerHotKey.KeyboardMoveForward, [fpMoving,fpBoost]); 
-FAudioCtrl.AddHotKeyMapping('RUN_BACKWARD', SOUND_RUN, 
-  TGorillaCharacterControllerHotKey.KeyboardMoveBackward, [fpMoving,fpBoost]); 
-FAudioCtrl.AddHotKeyMapping('WALK_FORWARD',  SOUND_WALK, 
-  TGorillaCharacterControllerHotKey.KeyboardMoveForward, [fpMoving]); 
-FAudioCtrl.AddHotKeyMapping('WALK_BACKWARD', SOUND_WALK, 
-  TGorillaCharacterControllerHotKey.KeyboardMoveBackward, [fpMoving]); 
-</file> 
 ===== Physics Character Controller ===== ===== Physics Character Controller =====