An injured woman has credited a Pokémon Go player with saving her from a would-be carjacker in Rockhampton.

Police said the 48-year-old woman was sitting in her car on Campbell Street last night when another woman pulled her from the vehicle about 7.15pm.

The other woman then tried to start the vehicle but failed, and assaulted the 48-year-old with an unknown object, possibly a tool, when she tried to find help.

Police said a member of the public then intervened, and the other woman fled the scene.

"He was purely a passer-by and was quite heroic in his efforts to intervene," Detective Allison Williams told the Morning Bulletin .

"That particular member of the public did offer a large amount of assistance to the female complainant and he is to be commended for his efforts.

"We are quite thankful and grateful for that passerby for what he did."

The 48-year-old was taken to hospital with lacerations to her head and face.

She has since taken to Facebook to thank her rescuer – a man she said was in the area playing the popular mobile phone game Pokémon Go.

"The person wasn't too happy my car wouldn't start after she let me and my keys go," she wrote.

"Thankfully I am on a Pokestop and a man coming to catch Pokémon saved me and called police."