Anchor (IV)

0 favourites
  • 4 posts
  • Link to .capx file (required!):

    dl.dropboxusercontent.com/u/23009908/construct_bugs/Blue%20anchor%20of%20death%20(III).capx

    Or in any file with any object.

    Steps to reproduce:

    1. Add Anchor behavior to object

    2.- In Left anchor choose: Left align

    3.- In right anchor choose: Right align

    Observed result:

    Scale it, and the object squishes.

    Expected result:

    One shouldn't be able to do that.

    That shouldn't be available as an option. One should not be able to align an object to both sides. They should be mutually exclusive. Align it to the Left, or Align it to the Right.

    Below is a suggestion of what the options should allow:

    <img src="https://dl.dropboxusercontent.com/u/23009908/construct_forum_uploads/Anchor-menu.gif" border="0" />

    dl.dropboxusercontent.com/u/23009908/construct_forum_uploads/Anchor-menu.gif

    Operating system & service pack:

    xp sp3 win7 32

    Construct 2 version:

    r133

  • Closing, your events conflict with what the anchor behavior is trying to do. Re-make the behavior with events if you need to customise it.

  • Ash, if there's a conflict, there's the Bug!

    More than a bug, this is also poor design.

    This is the bug:

    An object anchored to the left can scale to the right without problems, an object anchored to the right can NOT scale to the left.

    The poor design is:

    The way the anchor has too many options, and they conflict with one another.

    That's why I'm suggesting these options as a clearer, un-conflicting way to position objects using the Anchor behavior.

    <img src="https://dl.dropboxusercontent.com/u/23009908/construct_forum_uploads/Anchor-menu.gif" border="0" />

    Honestly man, I never thought it'd be so hard to make you understand these bugs, am I not explaining myself clearly?

    I'll later post Anchor (V) with a capx, and a vid too??

    ...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The anchor behavior sets the object position *and* the object size. If you try to change the object width using other events or behaviors, the Anchor behavior will override it (this is what I mean by conflicting). In this case you shouldn't be using the Anchor behavior; you should just use events.

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