How do I get sound to play without delay? (SOLVED)

0 favourites
  • 5 posts
From the Asset Store
In this template the music plays without looping in your game
  • I'm making a platformer game, and whenever the player touches a coin, the coin is supposed to destroy, the player receives a point, and a sound plays. The only problem I have is that the sound plays with a barely noticeable delay. I'm not sure if it is construct itself or me. I have tried:

    • Preloading the sound at the start of the layout
    • Skipping 0.1 seconds ahead in case the sound has a delay
    • Looking at the Audio object settings

    Here is my code:

    I'm not sure what the problem is. Any help would be appreciated.

    Tagged:

  • Hi Dburca,

    Do you have a preview link I could check? Happy to have a look.

    I'm also around on Discord: Lukew125#2413 if you wanted to see if I can assist.

    Thank you,

    Luke :)

  • Yes, here is the dummy project

    [LINK DELETED]

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi Dburca,

    All seems okay on my side; If anything, I moved Destroy Coin to before play audio as it was playing faster than destroying!

    Seems to work correctly in C3 for me, and I've checked the Audio file and that too seems spot on.

    Sorry, I cannot be of more help, but if it's any reassurance it looks good to me.

    Thank you,

    Luke

  • Thanks for helping.

    On the actual project, I moved 'destroy coin' before the audio. I think the problem was my Bluetooth earbuds, which sometimes have an unstable connection with my PC. I can't believe I didn't think of that before. Anyways, have a good day!

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