Learning to move by perceiving yourself