make speed a public field for WalkingSprite.