Mobile app version of vmapp.org
Login or Join
Turnbaugh909

: Copy, paste, move colored squares - but keep them aligned to the grid I am developing a word game for iOS and would like to use an SVG file as the gaming board. The SVG file (author: Denelson83,

@Turnbaugh909

Posted in: #Alignment #Grids #Inkscape #Svg

I am developing a word game for iOS and would like to use an SVG file as the gaming board.

The SVG file (author: Denelson83, Wikimedia Commons) is almost perfect for my game - except for displaced colored squares.

My question is:

How could I please copy such a colored square (is it a Group?), then paste it and move the new square to a new spot - but still keep it aligned to the grid?



As an Inkscape newbie I have already found out, that I can jump to the "original" with Shift-D.

And I can hold CTRL key to move objects horizontally or vertically.

But I still don't understand how to keep the moved square aligned to the grid (which also seems to be in a separate layer - so how did the author manage to keep all squares aligned to the grid?)

And also I can't find some view/dialog/toolbar, which would show me the coordinates of the object being dragged by me (I only see the coordinates of the mouse pointer at the bottom right). If I could see/change those coordinates, then I could (in a tiresome way) calculate and set the coordinates for the new squares...

UPDATE:

I've toggled Snap to grid and also enabled showing the grid:



but the square doesn't snap to the grid when I drag it.

And also the grid is too small and I can't find how to make its cells broader.

UPDATE 2:

I have found where to set the grid size (15 x 15) and offset:



But while the grid looks ok now and snaps too - it snaps in the wrong places as shown below.



Why doesn't the grid snap at the square's borders?

Is this maybe a bug in Inkscape? How to workaround it please?

UPDATE 3: I've received an offline advice to hold ALT while dragging a square

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Turnbaugh909

1 Comments

Sorted by latest first Latest Oldest Best

 

@Sent7350415

In order to snap the whole group, you need to enable "Snap bounding box corners", by clicking on the proper icon in snap toolbar:



Usually this flag isn't enabled and you see the snap to text baseline:



Enabling this flag you can see the snap to the bounding box of the group (or the selection);



You can change the behaviour of the snap using the other buttons in the toolbar. See here for reference.

Be aware that the snap depends from the position of your mouse in the selection: if you begin to drag the group with the mouse near the text, the snap would be related to the text, if your mouse is near the top-left corner of the box, the snap would be related to the top-left corner of the box (if "Snap bounding box corner" is enabled), and so on.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme