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
24
S
10
G
1
Posts: 153
Reputation: 2,660

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
45
S
15
G
73
Posts: 2,006
Reputation: 43,394

Post » Sun Jan 01, 2017 10:39 am

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

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
23
S
6
G
58
Posts: 1,229
Reputation: 34,540


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 16 guests