Thank you for your continued support. I have a question regarding a game currently in development. During test play, every time an attack hits the opponent, the stage BGM (specifically, the BGM with ID 1 in the Sound Database) starts overlapping and playing repeatedly. After checking the Corescene, it appears that “AudioStreamPlayer…” instances are inexplicably multiplying each time an attack lands, causing the BGM with ID 1 to play over and over. Unfortunately, I am not well-versed in programming, so I cannot determine what is going wrong and am struggling to find a solution.
Whether this is a bug or intended behavior, is there currently a way to resolve it? If there is a technical solution that can be implemented without programming knowledge, I would greatly appreciate it if you could share it with me.
With only this information, it’s difficult to understand the situation. Would it be possible to share the project?
AudioStreamPlayer is designed to create a certain number of instances each time sound is played, and then reuse those that are no longer in use. Therefore, it seems that continuously playing a long sound like BGM is causing the number of instances to increase.
Considering this, I suspect that somewhere in the settings, the BGM is being triggered on attack hit or when taking damage.
Thank you for your reply. If you could please let me know how to share the project, I would be able to upload it as well. I would greatly appreciate your assistance. I was having trouble because the same issue occurred even after temporarily removing all sound playback for hit and stagger effects. Thank you very much.
We would appreciate it if you could upload the project using a general file-sharing service and send the share link to me via GUILD’s DM feature.
Understood. I have sent the URL via message.
Thank you very much for your kind assistance.
1 Like
Thank you for your continued support.
Thank you for sharing the project with us regarding this matter.
Upon verification, we found that within the following path:
Enemy Object
→ TakenDamageSettings
→ Play Sound
the sound playback for the title was configured.
Could you please adjust the settings by either disabling this option or assigning a different sound, and then verify whether the behavior now matches your expectations?
We would greatly appreciate your confirmation.
1 Like
Thank you. The TakenDamageSettings configuration was completely overlooked. This is because I don’t recall ever enabling the playback setting. After turning playback off, the infinite BGM loop also stopped.
I do remember wondering at the start, “Wait, isn’t there a ‘No Sound’ option in the settings…?” but I never realized playback had been enabled. I truly appreciate your help.
1 Like