List and touch?

Get help using Construct 2

Post » Tue Oct 17, 2017 2:35 pm

Message: Blendi1223 can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Hi!
My problem would be to make a phone game and "list" work only if I click on my mouse when I switch to touch - double tap object then it does not work.
How can I do that with "touch" I can click on the list and not with my mouse?
Sorry the bad english.



https://prnt.sc/gyj8w1
B
10
S
1
Posts: 26
Reputation: 536

Post » Tue Oct 17, 2017 3:02 pm

Hey @Blandi1223!

Your code seems to be correct. No idea why it's not working. Can you share a capx or something?
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
22
S
6
G
3
Posts: 718
Reputation: 4,008

Post » Tue Oct 17, 2017 3:12 pm

(deleted)
EDIT: Sorry, I misunderstood your issue.
Last edited by dop2000 on Tue Oct 17, 2017 3:59 pm, edited 1 time in total.
Image

Did I help to fix a problem in your game? You can buy me a cup of coffee :) If you'd like to hire me, please see this post
B
17
S
9
G
156
Posts: 2,209
Reputation: 82,999

Post » Tue Oct 17, 2017 3:14 pm

Message: Blendi1223 can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
brunopalermo wrote:Hey @Blandi1223!

Your code seems to be correct. No idea why it's not working. Can you share a capx or something?


Yes..
I did a project that illustrates my problem.
(I want to play a phone with the list plugin, but the touch plugin does not work on the list, but I just can not click it.)

http://www.mediafire.com/file/7kshdwqqap2ixs2/example.capx
B
10
S
1
Posts: 26
Reputation: 536

Post » Tue Oct 17, 2017 4:05 pm

It works for me.
All events ("On touched", "On tap gesture" and "On double-tap") work with the list on my Android phone.
The list looks different though, not the same as it is on PC.
Image

Did I help to fix a problem in your game? You can buy me a cup of coffee :) If you'd like to hire me, please see this post
B
17
S
9
G
156
Posts: 2,209
Reputation: 82,999

Post » Tue Oct 17, 2017 4:26 pm

It's working fine. You're probably testing on a desktop.

While the Touch on a touch-enabled device is recognized both as Touch and as Click, a mouse click, on a non-touch device, is only recognized as Click. So. If you test on a desktop computer with a mouse, the Touch event will never be activated.

Try going to http://constructgamelab.000webhostapp.com/test in a smartphone and you'll see it working.

cheers.
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
22
S
6
G
3
Posts: 718
Reputation: 4,008


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests