I want to check if object exists.
How do I do it?
If Bullet is X on layer"Game" doesn't work
if Bullet is X on screen doesn't work.
In debug it shows no Bullet exist.
Please post your capx that is not working as expected and we might be able to spot the problem.
does this help ?
RamPackWobble I'm curious, if you create a number variable and add an action "Add 1 to variable" from if On-screen event, it keeps adding 1 to infinity, isn't possible to regulate this like add 1 once time each sprite on screen?
Joannesalfa after (is the on screen) event make a sub event with a for each bullet add 1 to variable ?
Yes that works - counting how many on screen
Develop games in your browser. Powerful, performant & highly capable.
There is also the event condition under System "Object UID exists" so you can check if an object currently using that UID currently exists.
And ofcourse you could use bullet.count to see how many instances of the bullet object exist on the layout.
RamPackWobble Good one! it really helps to this thread <img src="smileys/smiley20.gif" border="0" align="middle" />
Well is the 10 time I lost what i wrote...
Bullet.count is not set as a graphical condition. The solution was to declare a constant 0 and to check if 0 is equal to Bullet.count.
System:Compare two values
Bullet.Count = 0