Anchor (IV)

Bugs will be moved here once resolved.

Post » Mon Jun 10, 2013 1:05 am

Link to .capx file (required!):
https://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:

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


Operating system & service pack:
xp sp3 win7 32

Construct 2 version:
r133
B
18
S
5
G
4
Posts: 568
Reputation: 5,079

Post » Mon Jun 10, 2013 2:53 pm

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.
Scirra Founder
B
386
S
229
G
87
Posts: 24,207
Reputation: 191,662

Post » Mon Jun 10, 2013 5:57 pm

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.





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??

...
B
18
S
5
G
4
Posts: 568
Reputation: 5,079

Post » Mon Jun 10, 2013 7:44 pm

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.
Scirra Founder
B
386
S
229
G
87
Posts: 24,207
Reputation: 191,662


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests