Touch and Zoom Bug

Bugs will be moved here once resolved.

Post » Sat Jul 20, 2013 5:58 pm

Link to .capx file (required!):
https://dl.dropboxusercontent.com/u/35814399/3d/Bugdemo.capx

Steps to reproduce:
1. Zoom in or Zoom out the screen
2. Touch different parts of the screen!


Observed result:
In some sides of the srceen objects creating in the touch XY coordinate (so that's right!), BUT! in other sides(in many sides!!) - they become creating in random positions! So! while zooming in or out (especialy out) - touch command becomes incorrectly working! Absolute X Y - can't solve this problem.
I trys to make a screen slider, thats sould scale the layout size with touch, but it cant works in Construct 2 at all!

Expected result:
Each object should be createing in the place of a touch!!
It does when the layout scale = 1.0, but when it = 0.5 the touch becomes
crazy!!

Browsers affected:
Chrome: yes
Firefox: yes
Internet Explorer: yes

Operating system & service pack: Windows 7 maximum

Construct 2 version:
    Stable 139 (32 bit)Anirender2013-07-20 18:01:10
B
6
S
1
Posts: 14
Reputation: 464

Post » Mon Jul 22, 2013 7:08 am

Have you searched the forums for Scaling and touch? There are threads on it showing that you have to take into account differences in coordinates when scaling on different layers.
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,583

Post » Mon Jul 22, 2013 3:03 pm

Closing as not a bug. Touch.X and Touch.Y do not take in to account the layer scale, unless you pass them a layer, e.g: Touch.X("Layer 0"), Touch.Y("Layer 0"). See the manual.
Scirra Founder
B
395
S
231
G
88
Posts: 24,367
Reputation: 193,694


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 5 guests