Sound loops unintentionally

SerajSeraj Member Posts: 10

Hello everyone,

I have a spaceship that shoots a bullet when a button gets pressed. The bullet is supposed to play a sound effect when it spawns.
My problem is, that the sound loops, even though loop is unchecked.
I´m working on a Windows computer if that makes any difference.
If you need any more information let me know, help is greatly appreciated.

Seraj

Answers

  • MattButlerStudiosMattButlerStudios Member Posts: 486

    Here are some things that you could try to troubleshoot:

    -Delete the block of code and input it again

    -Select "run to completion"

    -Put the play sound behavior before the spawn actor

    For Example:

    when touch is pressed

    -play sound

    -spawn actor

    Inputing the code this way may stop the sound from somehow repeating since the rules may be getting confused with the spawn behavior

  • SerajSeraj Member Posts: 10

    @MattButlerStudios‌
    Thanks for the suggestions, sadly none of them seem to work for me.

  • SocksSocks London, UK.Member Posts: 12,822

    @Seraj said:
    MattButlerStudios‌
    Thanks for the suggestions, sadly none of them seem to work for me.

    Are you able to say how the suggestion didn't seem to work for you ?

  • yattamoveyattamove Member Posts: 236

    Put the play sound behavior in the touched actor, not in the spawned actor. I had that issue before.

  • SerajSeraj Member Posts: 10

    @Socks said:
    Are you able to say how the suggestion didn't seem to work for you ?

    Well I tried out his suggestions but there seems to be no change, the sound is still looping. Or did I misunderstand your question?

    @yattamove said:
    Put the play sound behavior in the touched actor, not in the spawned actor. I had that issue before.

    Sadly no difference after that change neither.

  • yattamoveyattamove Member Posts: 236

    @Seraj‌
    Sorry I just realized you are using the PC version. I try to replicate your error later and see what I can find out.

  • SerajSeraj Member Posts: 10

    @yattamove Thank you very much, looking forward to your results!

  • ManxMannManxMann Member Posts: 28

    @Socks‌ @Seraj‌ I think its a problem with the Windows version, since the latest up date the code @Socks‌ made for my engine noise using pitch no longer works.

  • SerajSeraj Member Posts: 10

    @ManxMann I´m still using 0.10.4.1 since the newer versions of GameSalad didn´t work fluently for me, do you think that´s the problem? Or did I get wrong what you said about the Windows version?

  • ManxMannManxMann Member Posts: 28

    @Seraj‌ I don't know about 0.10.4.1 as I was using an older version until yesterday and everything was working fine. I downloaded 0.10.5 and the sounds in my game have messed up without changing anything.

  • SerajSeraj Member Posts: 10

    @ManxMann Oh okay, I didn´t change my version since I started, so it probably shouldn´t be an issue with the version, but thanks for letting me know.

  • SerajSeraj Member Posts: 10

    Still looking for a solution, anyone able to help me out?

  • SerajSeraj Member Posts: 10

    Bump

  • kangaroo540kangaroo540 Member Posts: 1

    maybe you did the uncheck on the prototype, but not the actor in the scene. FYI, does anyone no how to create a counter? i'm a newbie around here.

Sign In or Register to comment.