im using
var gridsize:int = 33;
this.x = int((game.theMouse.x)/ gridsize) *(gridsize)+4;
this.y = int((game.theMouse.y)/ gridsize) *(gridsize)-4;
to make a block follow grid but it moves really ruggedly especially if your trying to move horizontally. is there a way i can add some type of smoothing to its movements?