Wednesday, 28 January 2015

Dungeon Level editing - Footsteps 02

Some fundamental issues surrounding the footstep sounds in the level were highlighted previously (walk speed and step frequency).

After a substantial amount of research on the matter I found a video on YouTube which explained how to change the player walk speed, this had to be changed by editing the Unrealscript. Having very little knowledge of the syntax involved with Unrealscript has so far hindered much of the projects progress and is an area worth further reading. The video tutorial in this case was quite straight forward but before editing the script file a backup copy of the original was saved securely in case of any problems later.

Code for player movement speed

The line of code highlighted defines the player movement speed (originally at a value of 1.00). This was changed as shown which resulted in a more natural walking pace. This setting however did not affect the actual footstep sound playback rate which was still the same (jogging pace) as it was.

After more reading on the matter an answer was dug up on the Unreal Epic forum where someone else had had to deal with a similar issue. Again, the solution was within the Unrealscript.

Code for footstep playback frequency

The highlighted area shows the lines of code that had to be edited in order to slow the footstep sounds down to match the new walk speed. Although I am not entirely sure what the numbers represent at this time, some tweaking and testing has given the desired results.

More investigation is required into how the code functions as it would be great to somehow link the player speed to the footstep frequency, as it is intended that the player can walk, run and move whilst crouching. The next step in this phase of development will be to try and work out how to set up and link player movement whilst running and crouching to a specific sound cue. 


No comments:

Post a Comment