E2 soundPlay only plays once
🔊 Sound•Updated 2 days ago•0 views
if(first()) only runs once when the chip is first executed, so the sound plays a single time at spawn. To make it play while firing, call soundPlay inside the b…
Why does my Expression 2 chip not play the sound when I press Mouse1? It calls Base:soundPlay() inside an if(first()) block.
if(first()) only runs once when the chip is first executed, so the sound plays a single time at spawn. To make it play while firing, call soundPlay inside the branch that reacts to the Mouse1 input changing (e.g. the changed(Mouse1) check) instead of inside first().