Scottish sitcom Simon Carlyle  has starred Arabella Weir, Kieran Hodgson, Alex Norton and others, and Simon Carlyle was also created and written by Gregor Sharp.
Carlyle from Ayr wrote the show as a one-off special in 2013 before it was commissioned in 2016.
Louise Thornton, head of commissioning at BBC Scotland, said staff were "deeply saddened" to hear the news.
Two Doors Down and many other series.
"Our thoughts are with Simon's family and friends, and the cast and crew on Two Doors Down."
Carlyle's manager, Amanda Davis, said he had been known for being a "supportive and nurturing collaborator".
Carlyle also wrote for Changing Ends, an ITV comedy series about Alan Carr growing up in the 1980s, and BBC LGBT+ show Boy Meets Girl.
Louise Thornton, head of commissioning at BBC Scotland, said: “All of us at BBC Scotland are deeply saddened to hear this news.
Two Doors Down had recently completed filming for its seventh series in February.
Jon Petrie, director of comedy commissioning at the BBC, said: “We are deeply saddened by the news of the death of our friend and colleague Simon Carlyle.
“Simon Carlyle was a wonderful comedy talent who, amongst many other credits, co-created and wrote the multi-award winning series Two Doors Down.
Jon Petrie, director of comedy commissioning at the BBC, said: “We are deeply saddened by the news of the death of our friend and colleague Simon Carlyle.
“Simon was a wonderful comedy talent who, amongst many other credits, co-created and wrote the multi award winning series Two Doors Down.
“His warm comic voice shone through these characters, garnering huge audience affection, and firmly establishing it as a long-lasting sitcom favourite.
“His warm comic voice shone through these characters, garnering huge audience affection, and firmly establishing it as a long-lasting sitcom favourite.
“Our sympathies are with his family and friends at this difficult time.”
Jon Petrie, Director of Comedy Commissioning added: "All of us at BBC Scotland are deeply saddened to hear this news. Simon was a major writing talent, loved for his work on Two Doors Down and many other series. Our thoughts are with Simon’s family and friends, and the cast and crew on Two Doors Down."
Read more
Sunderland vs Crewe: Crewe win on penalties after the two teams being tied (1-1) Wrexham vs Wigan(0-0),Ryan Reynolds team advances on penalty shootout to Carabao Cup 2nd roundSarah H
Also on site :