As far as I know, when two action happen at the same time, I can combine these two sentence into one sentence by using participle form for the one of the actions.
The thing what I am trying to ask is that in the first two examples, why we don't use comma before participles in the first two sentences, but we use comma in the other two sentences?
1- A man ran out of the house shouting.
2- Kate is in the kitchen making coffee.
3- A gift from the Magister Illyrio,” Viserys said, smiling.
4- They had lived in the magister’s house, eating his food, pampered by his servants.