If you want your layer to move with a specific number of blocks this topic is for you!
This is the formula:
distance traveled (in pixels) = duration of movement (in frames) * speed
Notes:
One block equals 32 pixels;
A positive horizontal speed will move to the right;
A negative horizontal speed will move to the left;
A positive horizontal speed will move down;
A negative horizontal speed will move upwards.
I hope I was helpful
