The function won't work, as picking a single object will always return an index of zero. Maybe expand on what you are really doing.
The UID is unique, the IID is just an index for the picked objects.
It's not clear how the game is implemented, as 100 levels and 100 layers is mentioned, so is that actually 1 layout and 100 layers, or was it just a bad choice of words (ie: 100 layouts). Could still be a global layer.
One option to try is have a top layer with a non-transparent black colour. Then adjust the opacity of that layer to control the "brightness" of the other layers.
Here's an example of switching FireMonster to use a Timer using a MasterTimer object.
http://www.blackhornettechnologies.com/ ... s_BHT.capx
Yes, if that needs to change. It wasn't clear where Missle_1 came from, since it isn't directly referenced in the picked objects.
Roughly you want to pass in the two UIDs of the objects so they can be picked again, and then move events 409-412 into the function. I like to pull the params out into variables, but that isn't necessary. I think it's cleaner though. The "for each" is in case the weapon hits more than one enemy at a time.
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.
Develop games in your browser. Powerful, performant & highly capable.
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.
Member since 28 May, 2012