Difficulty with Inverted Conditions

Get help using Construct 2

Post » Sun Feb 03, 2013 4:45 pm

To keep it short, I've been messing around with the free version, making extremely simple games just to see how I like the program. In my current game I'm working on, I'm trying to make it so that when all entities of a specific sprite are gone, the player get's a game over popup. I've noticed there is a 'see if on screen' condition, so I tried to use that for the sprite that the player goes around and destroys. I inverted the 'see if on screen' but it seems to do nothing different, and I can't seem to find a way to make this work. So I suppose my question would be, how can I make it so once all entities of a certain sprite are destroyed, a condition is fulfilled making another action occur? Also, what exactly does the 'invert condition' do? I was under the assumption it would be the same as a 'not statement', but that doesn't seem to be the case.
B
3
Posts: 4
Reputation: 283

Post » Sun Feb 03, 2013 4:57 pm

You could check the sprite.count to see how many are left.
B
44
S
15
G
9
Posts: 1,096
Reputation: 11,013

Post » Sun Feb 03, 2013 5:14 pm

Under what condition and action would that expression go into though? I'm trying to get a better understanding of the event system, but I'm not sure where specific expressions would go, and how I would run a 'check' of something, or an amount.
B
3
Posts: 4
Reputation: 283

Post » Sun Feb 03, 2013 5:15 pm

System -> compare two values
B
24
S
8
G
7
Posts: 756
Reputation: 7,192

Post » Sun Feb 03, 2013 5:22 pm

Ah. Well thank you both very much, I appreciate the assistance.
B
3
Posts: 4
Reputation: 283


Return to How do I....?

Who is online

Users browsing this forum: armaldio, blackhornet, TiagoCesar and 18 guests