Touch and Zoom Bug

0 favourites
  • 3 posts
From the Asset Store
All popular touch mechanics - scrolling, zooming, swiping
  • Link to .capx file (required!):

    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


    Browsers affected:

    Chrome: yes

    Firefox: yes

    Internet Explorer: yes

    Operating system & service pack: Windows 7 maximum

    Construct 2 version:

        Stable 139 (32 bit)

  • 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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)