I’m trying to use guides on my Flash stage to better align objects, but how do I get the guides to snap to pixels? Half the time they end up being like 298.4, when I want them nicely snapped on each pixel, ie. 298.0.
I’m using Flash CS3 and I have all the snapping options turned on. I read somewhere that holding down shift will snap guides to pixels, but this doesn’t seem to work.
Some guys might not consider this question relevant to stackoverflow since it’s not related to programming, or it’s a pretty easy one. It can get geeky though 🙂
Anyway,
If you go to Edit Snapping ( CMD + / (MAC ) or Ctrl + / (PC) ) and set:
turned on and also, turn the Grid on ( right click an empty space in the document and go to Grid > Show Grid ). You might want to edit the grid to be 1 x 1 instead of the default 18 x 18 pixels.
If you don’t turn the grid on, you might get snapping to half pixel (.5 ) values, which I’m assuming you want to avoid.
Let me know if you plan to do some pixel art, I can recommend some handy tools, otherwise if it’s just having a crisp layout you’re setup, this extension would’ve been handy, but the link doesn’t work unfortunately.
Fortunately it’s a pretty easy thing to write.
I just made a new JSFL Document ( RoundPixelValues.jsfl for example )
and saved it in the $Flash/Commands folder, where Flash is your application/program files folder.
You can write the whole thing in 3,4 lines of code probably, but I’ve spead it out on 10 for readability:
just paste the code in the newly created jsfl file and save. The option should come up in your Commands Menu. The advantage is that you can also setup a keyboard shortcut if you need this often enough.
Goodluck !