To do this, I'm checking an Instance Variable named "Active" for an object, and if the variable is 0 (which is its default setting), spawning the object and then setting its variable to 1. When the object is later destroyed, its variable is set back to 0. Here's what the event sheet looks like at the moment:
It doesn't work. None of the background objects (that require Instance Variable checking) spawn. The foreground objects work perfectly.
Disabling this didn't change anything. Still no background objects spawned:
But disabling this does allow the background objects to spawn. However, it spawns loads of them, since there's nothing to tell C2 to stop spawning the objects:
Finally worth noting - I had originally tried setting the events up like this (using a sub event), but this doesn't spawn any background objects either:
Sorry for using so many images, but I wanted to be as thorough as possible so you know what I've tried Any idea where I'm going wrong?
Many thanks for reading