#SFX Syncing for Pun 2

1 messages · Page 1 of 1 (latest)

thorny vine
#

I'm using photon 2 for a multiplayer game, currently I'm trying to sync the sfx across the clients and it does work but theres this weird sound that plays. Also sometimes you hear the sfx twice. I'm using two windows on the same device(one is muted).

If any more info is needed I can add it.

#

The SFX work fine in single player

hasty shuttle
#

try to add this check

if(!gunshotSFX.isPlaying)
  gunshotSFX.Play();
#

@thorny vine and i suggest using PlayOneShot(AudioClip); and in your code make sure to disable looping in the AudioSource

thorny vine
#

tysm @hasty shuttle it worked and now ive also noticed a minor bug with one of my other sfx(i can sort it easy though)