What can I do to remove the lag between the actual collision contact and playing collision sound?
In my game objects I play a “hit” sound every time the proper collision is triggered. The sound is cropped to start immediately, and right after receiving trigger_response
I’m triggering sound.play("#sound")
but in game there is an undeniable lag between the hit and the sound :/.
The hitbox collision_object is created via factory when the cursor of the animation is pointing the proper frame. The particlefx accompanying the hit is triggered without such delay
I use some “sword swing” sound - that is played right before the contact, when the animation of the attack is started and it of course doesn’t end before the end of that animation, but in the middle of it I’m triggering above “hit” sound when the sword is colliding with objects. Can’t those sounds be played in parallel? I have a feeling that the hit sound starts right after the end of animation (which is also the end of the “sword swing” sound) It’s strange because the environment sound is always playing in the background
Some paint explanation: