mstop4 / FMODGMS

🎶 GML bindings to the FMOD Studio low-level API for GM:S and GMS2. Can be used in Windows, macOS, and Linux games.
https://quadolorgames.itch.io/fmodgms
BSD 2-Clause "Simplified" License
62 stars 18 forks source link

Can't mute the level music when a variable is activated. #27

Closed DFelipehDEV closed 4 years ago

DFelipehDEV commented 4 years ago

Im using GMS 1.4 and i need to the level music mute when the temporary invincibility is playing and for some reason the mute isnt working. I made this in the audio object:

if instance_exists(objPlayer){ if objPlayer.invincibility=1 FMODGMS_Chan_Set_Mute(0,true) else if objPlayer.invincibility=0 || objPlayer.invincibility=3 FMODGMS_Chan_Set_Mute(0,false) }