How do I make a drag and snap to grid in Scratch because im making this game which I need to know how to do that
Please could someone help?
Last edited by Flashkirby (2007-08-04 09:08:16)
Offline
To snap to 5 pixel grid, at the end of your drag and drop script:
Go to ( 5* (round ((x)/5)), ( 5* (round ((y)/5))
Change all four "5"s for the grid-size you want, or replace them with a variable if you want to easily experiment with different grid sizes.
Offline