Snap to grid bug?

  • Problem Description

    Snap to grid snapping wrong when moving resized sprites.

    Attach a Capx

    Not useful for this bug, made a video:

    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)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

  • Closing as no .capx provided and video does not show any evidence of a bug; snapping is relative to the origin.

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