As he rounded third base, desperate for an opening to tie this baseball game, Royals outfielder Jarrod Dyson turned his eyes across the diamond. When the throw bounced, he knew just what to do.

“I saw the ball kick out,” Dyson said. “And then I just turned on the boosters.”

He scored on a two-out throwing error by former All-Star shortstop Jose Reyes. An inning later, Omar Infante ripped a two-run single to guide the Royals to an 8-6 victory over the Blue Jays, one of the hottest teams in baseball.

The Royals cooled one streak — Toronto’s nine-game string of wins — and ended their own four-game stretch of futility. The day began with a shuffling of the coaching staff. It ended with the team’s first sign of life in days.

“It feels really good,” manager Ned Yost said. “I was really pleased with the way we swung the bats tonight.”

The offense bailed out starter James Shields, who was terrorized by Blue Jays first baseman Edwin Encarnacion. He emptied his toolbox to try to temper the Blue Jays. He even picked off a pair of runners. But he could not keep the baseball in the park. Shields yielded six runs, thanks to a trio of two-run blasts, two of them from Encarnacion.

“I made three bad pitches,” Shields said. “And they capitalized on it.”

Earlier this week, the team endured a three-game humiliation at the hands of the Astros. They demoted hitting coach Pedro Grifol and shifted third-base coach Dale Sveum into that position. Amid the upheaval, the club turned to its finest player. Two winters ago, the Royals traded for Shields to curb skids like this.

A freight train awaited him. The Blue Jays lineup is savage, packed with sluggers like Encarnacion, Adam Lind and Jose Bautista.