[R136] Object position after layout scale bug

0 favourites
  • 4 posts
From the Asset Store
Match same tiles with each other as fast as you can and earn more score during a limited time!
  • Link to .capx file (required!):

    CAPX

    dropbox.com/s/sujlgfdrrmmv1iv/objectPositionBug.capx

    Steps to reproduce:

    1. Create second layer with scale 0

    2. Create two Sprites - one in the first layer, one in the second

    3. Change the Layout Scale to something different than 1.0: the object in the first layer with Scale 100% moves around, the second object in the 0% layer stays in place - just fine as expected.

    4. Set Sprite2 position to object Sprite1 (image point 0) - hm, it appears that C2 is trying to align both objects in their Layout Scale 1.0 positions and disregards the changed Layout Scale.

    Observed result:

    The Layout Scale change is disregarded. The second object is not aligned to the actual image point of the first object, but to its initial position as it was at Scale 1.0.

    Expected result:

    Both objects should be aligned at different Scale ratios to their chosen image points as it happens at Scale 1.0.

    Browsers affected:

    Browser independent - C2 issue

    Operating system & service pack:

    WinXP SP3

    Construct 2 version:

    R136

  • Actually there is the same problem with using the first Object's coordinates X and Y. They are pointing to the initial Object's position as it was at Layout Scale 1.0 and not to its actual position after Layout Scale change.

  • Closing, this is by design. Setting positions only sets to the position in layout co-ordinates; it does not take in to account the altered viewport.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Oh no, what do you mean this is by design?! <img src="smileys/smiley19.gif" border="0" align="middle" />

    As far as I can read - 'Set position to another object' should move my second object to the first Object's origin - nothing else, nothing more. It does NOT function as expected, and it appears to be actually useless, if the Layout Scale or Layer Scale are touched?!

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