Im getting a delay from when I click the left mouse and the shell ejects, then when the sound is played. I put print stat…

Forum Archive Im getting a delay from when I click the left mouse and the shell ejects, then when the sound is played. I put print stat…

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6106
    Ron Kiker
    Participant

      Im getting a delay from when I click the left mouse and the shell ejects, then when the sound is played. I put print statements in Fire and Ejector: shot time at 2.822892. shot audio time at 3.78

      completely puzzled on this on.

      audio source priority is 0…though there are no other sounds competing with priority here, so really shouldn’t matter.

      #24924
      Jonathan Gonzalez
      Participant

        Not really sure why you’re getting a delay on the bullet shell ejecting. Make sure you have the Eject function in the correct spot within the Fire function. You can also test it out separately by including a “Input.GetButtonDown(“Fire1″)” in the Eject function.

        Make sure you remove it from the Fire function if you do this separately. Also ensure the Eject function is in the Update function so it knows if you’re pressing a button. Hope that makes sense, just a few things to try out.

      Viewing 2 posts - 1 through 2 (of 2 total)
      • The topic ‘Im getting a delay from when I click the left mouse and the shell ejects, then when the sound is played. I put print stat…’ is closed to new replies.