ScratchData LogoScratchData
Back to Flasion2D's profile

Custom Block: Snap to grid

FLFlasion2D•Created June 22, 2013
Custom Block: Snap to grid
12
8
372 views
View on Scratch

Instructions

Move the mouse around the screen to make the Scratch cat go to the closest spot on the grid relative to the mouse

Description

Actually fairly basic. Grid is made of squares with a certain sidelength. Divide x and y position by sidelength, then round, then multiply by sidelength. Current sidelength is set to 10. May soon update to have a rotated grid.

Project Details

Project ID11026572
CreatedJune 22, 2013
Last ModifiedDecember 4, 2013
SharedJuly 9, 2013
Visibilityvisible
CommentsAllowed