Hi guys,
I am using AnimationPlayer to animate my characters in the game and I wanted also to add sound to the animations through it.
The animation is working fine and plays fine in the game.
The audio doesn't work. only works in the editor but not in the game. any idea why?
I know how to run the audio in the code but I try to keep the code free from it. just to keep things more cleaner.

    Sonadrin i noticed you're setting the stream during the Animation. Are you loading the file every time you shoot or at the beginning? Usually you can just load the stream in the object before hand. That could be it?

    For what it's worth, as an audio guy, I prefer to sync my sounds in code (especially footsteps and such, which you can trigger on specific frames of 2d animation). I always find the AnimationPlayer a bit floaty for audio but then again, I'm still in Godot 3.x.

      SnapCracklins It didn't work but maybe I should just do it in the code.
      How do you sync the start of a sound to a specific frame in the animation?

        Sonadrin I basically watch it in process, i tend to process my animation, physics and such as separately as possible. You just wait for the right animation frame, check if your step audio is running (AudioStreamPlayer.playing:) then once the animation.frame==6 or whatever logic you use, trigger the sound.