Add For each switch_sensor, and drag Overlapping and Else as subevents. Then it works.
https://www.scirra.com/manual/158/third-party-addons
C2 actually looks in two places for third-party plugins, due to this issue.
You need to use an array. It will do exactly what you want.
Exporting as a website would at least let you run the browser console, which might show errors that are harder to see on a mobile device.
Are you sure the "First layout" field in the Project settings is correct?
You can try resetting globals, or alternatively, Browser.Reload. One of those should work.
You can call into JavaScript.
Browser.ExecJS("parseFloat(" & Function.Param(0) & ", 10).toFixed(" & Function.Param(1) & ")")[/code:3tdpp7jt] [url=http://www.blackhornettechnologies.com/Construct2Stuff/FixedDecimal_BHT.capx]http://www.blackhornettechnologies.com/ ... l_BHT.capx[/url]
You can check if a Set is processing and delay your get until it is done.
http://www.blackhornettechnologies.com/ ... edGet.capx
Edit: use a larger number (-100), or just check for a low value (-100) and Stop the sound.
Sound only goes down, not up, so your value needs to be between 0 and some negative number (start with -60).
Sound always plays at full volume (0db). You can only decrease it: -5, -150,...
In XDK, in the Cordova Hybrid Mobile App Settings, Add Plugins to this Project, scroll down and pick StatusBar.
To call it from C2:
int(random(0,3)) to get 0,1,2.
choose(0,1,2) should work fine.
I've posted various Timer examples over the years.
http://www.blackhornettechnologies.com/ ... ullet.capx
http://www.blackhornettechnologies.com/ ... ample.capx
http://www.blackhornettechnologies.com/ ... 50424.capx
http://www.blackhornettechnologies.com/ ... 51210.capx
http://www.blackhornettechnologies.com/ ... imers.capx
Develop games in your browser. Powerful, performant & highly capable.
System:Pick by comparison