best device to test touch object?

Get help using Construct 3!

Post » Wed Feb 21, 2018 6:48 pm

My problem is when i try to preview-test my projects which use the touch object. On a desktop mouse or a touch screen laptop the touch object doesnt respond very well if at all. When i change to mouse object (e.g. tap here set object to mouse.x, rather than touch.x) the response is much better. Even on my phone the mouse object works better even though i am “touching” things (well, scirra arcade through safari on my iphone). But i want to make android platform games for android phones/touch devices. So can i get away with using mouse objects or will i have to ise the touch object for android devices? When i use OR blocks (touch or mouse click) the results of my preview is kinda funky on a desktop. I think the desktop is registering both a touch and mouse click, even though there is no touch interface.

It would also be interesting to know more behing the touch acceleration feature of the touch object.
I guess i will test more when i can so i get a definitive answer.
B
36
S
14
G
3
Posts: 6
Reputation: 4,030

Post » Thu Feb 22, 2018 1:20 am

I've never had such issues. Have you tried a different browser?

One possible explanation that comes to mind - you can access Touch properties (X, Y, acceleration, angle etc.) only when the screen is actually in touch. Or if you are using mouse to emulate touch - when the left mouse button is pressed.
So, for example, this code will not work, because Touch.X,Y will become 0 after the wait:

On tap gesture -> Wait 0.1 seconds ; Set Sprite position to Touch.X, Touch.Y


When you are using Mouse plugin, you can track mouse X,Y all the time, no need to press any buttons.
B
17
S
9
G
157
Posts: 2,220
Reputation: 83,521

Post » Mon Feb 26, 2018 5:48 pm

Thats a good tip to kee in mind.

games-receive-multiple-touch-events-when-in-iframe-on-mo_p1164043?&sid=d3e845121e7e1925ec1b155849c797cf#p1164043

This thread answered my question. Thanks.

Probably best to code in input detection method per the examples.
B
36
S
14
G
3
Posts: 6
Reputation: 4,030


Return to How do I...?

Who is online

Users browsing this forum: No registered users and 2 guests