You should consider adding another tutorial with a better way of handling depth for this type of movement as there are a few issues with the current depth = -y code.