Anchor Behavior Ineffectual.......

Bugs will be moved here once resolved.

Post » Thu Aug 13, 2015 10:37 am

Problem Description
Anchor Behavior Ineffectual.

Attach a Capx
https://drive.google.com/file/d/0B1sL4T ... sp=sharing

Description of Capx
Set a sprite to anchor to the bottom left, does nothing.

Steps to Reproduce Bug
  • Create Sprite.
  • Set Anchor Behavior. (It's on its own layer set to parallax (0,0).)
  • Preview, desired change undetected.

Observed Result
Not working.

Expected Result
Sprite to spring instantly to the bottom left corner.

Affected Browsers
  • Chrome: (YES)
  • Chrome for Android: (YES)
  • Intel XDK Build: (YES)

Operating System and Service Pack
w7

Construct 2 Version ID
r211
Last edited by STARTECHSTUDIOS on Thu Aug 13, 2015 10:00 pm, edited 5 times in total.
B
82
S
32
G
7
Posts: 281
Reputation: 10,685

Post » Thu Aug 13, 2015 11:06 am

The anchor behavior is not working exactly like you think. It will move your object to keep it at the position you have at startup. Try to move your sprite to the upper right corner, set <Top Edge> to Window top and <Right Edge> to Window right and try to resize the window in preview mode. The sprite move to stay on the upper right corner.
B
15
S
6
Posts: 105
Reputation: 1,356

Post » Thu Aug 13, 2015 9:19 pm

You're right. I just need an object to snap to a corner of the screen without starting there.. guess I'll just do it manually using 'viewport.'
Last edited by STARTECHSTUDIOS on Thu Aug 13, 2015 9:45 pm, edited 1 time in total.
B
82
S
32
G
7
Posts: 281
Reputation: 10,685

Post » Thu Aug 13, 2015 9:28 pm

Also, just to clarify, setting <right edge> to window right will stretch the sprite. I think you meant to set the left edge to window right which will work as you described. :)
B
82
S
32
G
7
Posts: 281
Reputation: 10,685

Post » Mon Aug 17, 2015 1:26 pm

Closing as not a bug. The Anchor behavior keeps its relative position in the viewport, it does not snap it to the corner.
Scirra Founder
B
399
S
236
G
89
Posts: 24,539
Reputation: 195,422

Post » Wed Aug 19, 2015 7:20 am

Thank you for attending to this. :) I appreciate it.
B
82
S
32
G
7
Posts: 281
Reputation: 10,685


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest