Sound effect switch not working??
Ok i have a rule thats says if xxxx attribute =0 play sound effect 1
if xxxx attribute =1 play sound effect 2
however it just plays sound effect one and the effect2 does not play even if attribute=1 just no sound at all.
when attribute changes back to 0 effect1 starts playing again.
the strange thing is nothing wrong with the sound file if i swap the effects both plays properly on attribute=0 but doesn't change after =1.
if xxxx attribute =1 play sound effect 2
however it just plays sound effect one and the effect2 does not play even if attribute=1 just no sound at all.
when attribute changes back to 0 effect1 starts playing again.
the strange thing is nothing wrong with the sound file if i swap the effects both plays properly on attribute=0 but doesn't change after =1.
Comments
Basically one offscreen actors with only these conditions inside nothing else.
I have a button when pressed changes the value to 1 from the menu screen. so at menu screen it's playing effect1 and once inside game scene it's supposed to be effect2.
hope one of those helps,
-Ryan
-Ryan
1) your sound file is corrupted , but you said its fine so...
2) your rule is corrupted , delete it and create it from scratch .
3) you "xxxx attribute" is not changing to 1 , or even if it does , its comes back to 0 too quick .
4) its a GS bug.. (unlikely )
If you want , you can send me a part of the project to roysadaka (at) gmail (dot) com and ill take a look ..
hmm.. probably i will try to create the rule again, dunno why such a simply rule can get corrupted.
when i pressed start game attribute changes to one and won't change back to 0, only changes back to 0 when i press return to menu from game area.
Anyway i'll try again.
how come the sound effect 1 can always play but not effect 2.
Seems GS needs a bit of loading time??
if effect=0 play1
OTHERWISE
play2
(I think)