play back a sound just once??

0 favourites
  • 4 posts
From the Asset Store
Grenade Sound Library contains: 135 sounds 50 grenade sounds and 85 surface sounds
  • Hi,

    I get a curious strange bug/feature when just trying to play back a sound for once.

    After three seconds system time the sound plays back strangely morphed as if being played a hundred times back. At first I thought it might have to do with the system condition I made it depend on. So I added a variable to check that it plays only once but that didn't help.

    The sound plays back fine when being not in preview and just playing it back in the project window. Any ideas?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Move the add HowManyTimesPlayed to event 1, when it is played, otherwise it keeps playing until the first one ends, which is too late.

  • Hey Black Hornet, thanks for the swift reply!

    This made the difference indeed.

    Would there be a more simple shortcut to let a soundfile just play once based on the same condition? Felt like I had to use some programming wits already for something very simple and ain't great at that.

  • From what I can see, you could do:

    On start of layout

    -> Wait 3 seconds

    -> Play sound

    This would play the sound once, 3 seconds after the layout starts.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)