Snap to grid bug?

Bugs will be moved here once resolved.

Post » Mon Oct 19, 2015 2:32 pm

Problem Description
Snap to grid snapping wrong when moving resized sprites.

Attach a Capx
Not useful for this bug, made a video:
https://www.youtube.com/watch?v=M5qB2oDBe-w

Description of Capx
Read above.

Steps to Reproduce Bug
  • Step 1 - Enable 'snap to grid'.
  • Step 2 - Place a sprite in the layout.
  • Step 3 - Resize the sprite, for example twice as big/small.
  • Step 4 - Move the resized sprite.

Observed Result
The sprite doesn't snap well, and ruins the functionality of the 'snap to grid' feature.

Expected Result
The sprite snaps in like the original size so it can blend in with the rest of the layout.

Affected Browsers
Not a browser issue.

Operating System and Service Pack
Windows 10 Home

Construct 2 Version ID
Release 215 (64-bit)
B
13
S
2
G
1
Posts: 60
Reputation: 1,554

Post » Mon Oct 19, 2015 3:22 pm

That is because of the position of the origin Image-Point. If your grid is for example 32x32 and your sprite 64,64 and the origin is in the middle it will snap in the middle of the sprite. If you make your sprite now 70*70 it will still snap still in the middle, but it will overlap 6 pixel over the grid. If you want that your sprite to snap with a specific corner you have to place the origin Image-Point to that position
B
24
S
3
G
1
Posts: 451
Reputation: 2,165

Post » Thu Oct 22, 2015 12:06 pm

Closing as no .capx provided and video does not show any evidence of a bug; snapping is relative to the origin.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,772


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests