Mouse button and other value using "compare two values".

Get help using Construct 2

Post » Sun Dec 27, 2015 7:03 pm

Hello, a question about the mouse object.
I need to check if a button is pressed and if a variable is true using "system -> compare two values" but the mouse buttons do not appear.
Why?.
How can I solve that?.

¿Where is the buttons of mouse?
Image

I need this:
Image
B
28
S
11
G
20
Posts: 738
Reputation: 13,692

Post » Sun Dec 27, 2015 7:11 pm

I'm not sure what you want to do..

What is the issue with using the "Mouse - left button is down"-event?
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

Post » Sun Dec 27, 2015 7:18 pm

The problem is I can not use the mouse buttons as an expression in "compare two values".

I want to make this comparison:

if ((mouse.LeftButton is down) or (mouse.rightButton is down and invertControls is true))
B
28
S
11
G
20
Posts: 738
Reputation: 13,692


Return to How do I....?

Who is online

Users browsing this forum: Aquanex2, Christmas, Johnzo, tarek2 and 1 guest