My sounds only play once

Nelly 6 Reputation points
2021-09-30T14:56:35.9+00:00

I created a jump sound using bxfr and went to put it in my game, but the sound only plays once and then it stops
Can anyone tell me why?

Developer technologies | Small BASIC
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Small Visual Basic 396 Reputation points
    2023-06-28T17:29:37.3933333+00:00

    I think You need to call Sound.Stop("jump.wav") before calling Sound.Play("Jump.wav")

    I made changes in Small Visual Basic to make the Play method implicitly call the Stop method before playing the sound.

    1 person found this answer helpful.
    0 comments No comments

  2. Nonki Takahashi 661 Reputation points
    2023-06-20T09:36:41.9133333+00:00

    Can you show your program ID or source code?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.