When not touching

Get help using Construct 2

Post » Fri Nov 18, 2011 8:44 pm

Hello peoples,
I am trying to make a game, duh. And when the player is standing on a button then a variable is now 1 But how can I get it when the player isn't touching then the variable is now 0. When the variable is 1 something becomes invisible so if I use the 'every tick' to set the variable to 0 - the thing is then visible - if flickers

It would be useful if I could use a 'Else' condition, but Construct 2 doesn't have one .

How could I get it so when the player isn't touching the button then the variable becomes 0 without using the 'every tick' condition, thanks.
B
13
S
2
G
4
Posts: 54
Reputation: 3,882

Post » Fri Nov 18, 2011 8:48 pm

Set a condition Player.On collision with an object Button then right click on the condition itself (it should make the condition alone highlighted with a yellow frame) and select "Invert" in the contextual menu.
This means "Player is NOT colliding with Button".

This issue has been covered several times in the forum, be sure to make a "search" before posting.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Fri Nov 18, 2011 8:53 pm

I can't invert this it won't let me
B
13
S
2
G
4
Posts: 54
Reputation: 3,882


Return to How do I....?

Who is online

Users browsing this forum: Artpunk, Axiomaltd, MACPK, OddConfection and 24 guests