Stephen King's most recent screenwriting effort is for the TV series 'Under the Dome'

'Under the Dome' is based on King's novel of the same name. 'I knew that George R.R. Martin had written a few episodes of 'Game of Thrones,' and I was very jealous,' said King.

'Under the Dome' stars Natalie Martinez (l.) and Josh Carter (r.).

CBS Entertainment/AP

June 23, 2014

Bestselling author Stephen King turned his computer keyboard to the TV world again recently, writing the screenplay for the premiere of the second season of the CBS drama “Under the Dome,” a series based on his 2009 novel of the same name.

This is far from the first time King has adapted his work for movies or TV. King worked on the screenplay for the upcoming movie “Cell,” based on his novel, with writer Adam Alleca. He also worked on the 2009 TV adaptation of “Children of the Corn” with writer Donald P. Borchers and the 2006 TV movie “Desperation” as well as adapting his novel “The Shining” for the small screen in 1997 and “The Stand” for TV in 1994 and writing the screenplays for the 1985 movie “Cat’s Eye” and the 1989 film “Pet Sematary,” both based on his novels, among others.

However, in this case, King said he was inspired by another well-known author.

“I knew that George R.R. Martin had written a few episodes of 'Game of Thrones,' and I was very jealous,” he told the Los Angeles Times.

He also revealed that he’s having trouble with a section of the book he’s currently working on, saying he’s a “mess,” but has faith that the problem will resolve itself.

“I don't usually plot in advance, the book usually tells me what to do, but I'm getting to the point where there's a lot of mist ahead and I just sort of hope things work out," he said. "They usually do.”

The author will also appear on the second season premiere of “Dome,” which airs on June 30. 

King recently published the novel “Mr. Mercedes,” which was released on June 3.