Touch position resetting to Origin

Bugs will be moved here once resolved.

Post » Wed Jan 16, 2013 5:30 pm

I'm using r114 64 bit.

This is a weird one because it only shows up when I use basic touch mode in the Visual Studio simulator. If I use mouse mode, it works fine. I checked on a physical touch device and the problem is also there.

So, if you build the attached file to either html5/Windows 8 and use the result on a touch screen. Swipe the red puck and it should fire off in the direction of the swipe....but sometimes (usually swiping "south east") the puck will reposition itself to the origin and move from there.


Hockey Game

Edit: In the full game, I have a green puck on the other side and it works fine in any mode.kenhes2013-01-17 00:52:53
B
19
S
3
G
2
Posts: 212
Reputation: 4,011

Post » Thu Jan 17, 2013 11:33 pm

I'd appreciate any help on this. It's the only thing stopping the game being released.
B
19
S
3
G
2
Posts: 212
Reputation: 4,011

Post » Thu Jan 17, 2013 11:59 pm

It's a mistake in your events: the 'on touch end' event takes a zero-based index of a touch, but you're passing the touch ID which is an arbitrary number uniquely identifying a touch.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Fri Jan 18, 2013 1:41 am

Thanks for the response. I've initiated a new thread:

Touch ID
B
19
S
3
G
2
Posts: 212
Reputation: 4,011


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests