Hi everyone
I just picked up construct 2 last week because I'm looking for a quick way to make games to easily preview assets which I sell on my asset store. So far it' certainly seems to be quick, I'm really impressed by the speed of which I can knock up a game. In fact I've finished the game and just need to put the sounds in.
But now I've hit a stumbling block, I can't seem to get a toggle button for my sound control to work. my logic in sudo code is as follows
global variable soundToggle="ON";
on button tap call sound toggler function
function soundToggler(){
if (soundToggle=="ON"){ soundToggle="OFF";}
if(soundToggle=="OFF"){soundToggle="ON";}
}
Here's the capx file with a demo.
dropbox.com/s/cxh3exl4z7m4jyo/soundToggle.capx
WHat Am I missing here ? Is this not the approach to take to change the value of a variable? I know you can't do code in c2 so I think my use of events is roughly equivalent to what I described above in code, Although as I say I've only been using c2 for a few days, so My head hasn't completely got around the system yet.
Many thanks