I'm trying to make it so that the door destroys when the LAST PILLAR on screen is destroyed?
I've tried things such as
(INVERT)pillar is on screen destroy
(INVERT)pillar is overlapping (Pillar checking sprite)
You could make a global variable for the number of pillars on screen and when it equals 0 or less the gate opens/destroys.
I did something similar with random enemies on screen. I made it spawn a random amount so i never knew how many would be there. The way I made it all work out is I just had the on start event add 1 for every enemy, then I made the door open when the number of enemies was 0.
I'll try to make a quick demo for you, hope this helps.
When the pillars are created they add 1 to the global variable pillars. When this variable hits 0, the gate destroys.
https://www.dropbox.com/s/b3xjxp1urf8ul ... .capx?dl=0
Develop games in your browser. Powerful, performant & highly capable.
If by "on screen" you mean on the layout there is a global value for the number of pillars ; Pillars.count
Many thanks for the help all <3
try this link for tutorials: Many tutorial here
https://www.dropbox.com/sh/eioscti86bpr ... 7YPza?dl=0