How do I activate and deactivate item in my invenotory

Get help using Construct 2

Post » Tue Nov 04, 2014 8:47 pm

I need to activate and deactivate item via clicking. Seems like construct runs from top to bottom and sets every time key_active to 0. How I can do that first click it sets key_active to 1 and on second click it sets to 0 ?

Image
B
3
Posts: 1
Reputation: 177

Post » Tue Nov 04, 2014 9:31 pm

You could use an else statement

or

Mouse on key clicked - system set key_active : 1 - key_active

(if key_active is 1 -- 1 - 1 = 0
if key_active is 0 -- 1 - 0 = 1)
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 14 guests