How do I disable touch w/ action

Get help using Construct 2

Post » Sun Jan 01, 2017 5:05 am

I want to disable 'touch' or set 'ignore input' to it while a certain thing is happening, how do I do that?
B
25
S
10
G
1
Posts: 154
Reputation: 2,687

Post » Sun Jan 01, 2017 5:39 am

I usually just toggle it off with a global variable, touch only works while global =1, set it to 0 when the other thing is happening.
B
46
S
16
G
78
Posts: 2,166
Reputation: 46,349

Post » Sun Jan 01, 2017 10:39 am

Agreed with Plinkie, give the Touch Object a Boolean Instance Variable.
Image
B
46
S
17
G
2
Posts: 201
Reputation: 4,526

Post » Wed Feb 22, 2017 9:52 pm

Hmm I was just looking for the same thing
B
32
S
10
G
6
Posts: 259
Reputation: 6,776

Post » Wed Feb 22, 2017 11:32 pm

Yup a global variable for a trigger works.

You can ignore input from the keyboard but not from touch because if they are using a tablet that would lock the screen so they could not quit or change windows.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,790


Return to How do I....?

Who is online

Users browsing this forum: beohs, boybacteria, Kyatric and 33 guests