Hi, I've been working with this demo I got off the forum from @MarkOnTheIron , here's the link...http://forums.gamesalad.com/discussion/32131/
He credits @FireMapleGames for the math and also @TShirtBooth for helping him.
What I have been trying to do is have the block (my Icon in this case) be able to snap to a grid, but with a little less snap. Right now the block seems to hit the outside of the grid and then suddenly snap into the grid. I was hoping for more of a smooth transition maybe rather than a constrain self.x and Y attribute, the block could be interpolated into place?
When not snapped I would like the block to have gravity and have the user be able to drag and drop it into anyplace on the grid.
Heres a vid of how it looks now....http://tinypic.com/m/ixsj89/2
I know it's a lot thanks for any help.