Footstep audio not panning dynamically with character's position.

  • #1, by marcusbTuesday, 01. August 2023, 16:46 9 months ago
    Hi, Appreciate any advice or solution with the following if anyone can help, thanks:

    I am having a problem getting character footstep sounds to pan with the characters onscreen position.

    Setting 'Speech Output Balance%' in 'Game Properties' results in dynamic panning of speech audio that follows the characters position on screen.

    I am wondering if is possible for the same effect with footsteps? When adding footstep sounds to a character in 'Edit Animation' & 'Edit Frame', the footstep sound doesn't pan dynamically with the characters position on screen like the speech dialogue does. Setting balance here to 100% pans sound fully to the right speaker and setting to 0% centres sound.

    Is it possible to pan footsteps dynamically according to the position of the character?

    Newbie

    5 Posts


  • #2, by afrlmeTuesday, 01. August 2023, 20:12 9 months ago
    Yeah, but if I remember correctly you need to use a scripting solution as you will need to calculate the characters position percentage against the width of the scene. Also, it would depend on how you are handling audio in regard to what the source is & where the audio target is in relation to the sound source... for example is the screen the target (aka us the player) or the target the playable character?

    I don't have the time right now to provide you with a scripting example, but I would highly recommend joining our Discord server; if you haven't already done so, as you will get a much faster response on their than on here.

    Imperator

    7278 Posts

  • #3, by marcusbTuesday, 01. August 2023, 21:30 9 months ago
    Thanks for the reply arflme.

    The source of the sound would be the player character. Relative to its position on screen - the width of the scene - would determine which speaker (Left or Right) the sound volume of the footstep sound is loudest from.

    Was hoping there was an easy solution I was missing somewhere in the settings, but figured scripting would be the only way to achieve it - guess I'll just have to try and get my head around the custom-scripting side of things smile

    Appreciate your advice - will check out the Discord Server also.

    Newbie

    5 Posts

  • #4, by afrlmeTuesday, 01. August 2023, 22:41 9 months ago
    No problem. I actually forgot about the other potential option too, which would be the characters relative position inside of the current viewport; the viewport being what the player can currently see as opposed to the entire scene width, as not everyone creates scenes the same width & height as the default game resolution - said scenes automatically become scrollable scene types.

    Imperator

    7278 Posts

  • #5, by marcusbWednesday, 02. August 2023, 17:56 9 months ago
    Good point. I hadn't actually thought of that! - depending on scene width v game resolution, characters relative position to viewport could need to be taken into account.

    Thanks again smile

    Newbie

    5 Posts

Write post