Finally got the avatar moving as expected