It could be that the troll is leading the boy to a new adventure or place. Or perhaps the boy has been tricked into following. There are many possible reasons.
The boy might be following the troll because he feels compelled to, like he's under some sort of spell or charm. Or it could be that they have a prior connection and the boy is following out of loyalty or obligation.
Maybe the troll has something the boy wants or the boy is just curious.
The way the cartoon boy fights the troll could involve teamwork with his friends or using the environment to his benefit. It depends on the story's setting and the boy's skills.
The cartoon boy might use his intelligence and quick thinking to outsmart the troll and gain the upper hand.
Maybe he's trying to get attention or play some sort of prank. It's a strange behavior for sure.
The boy outsmarts the troll by using his wits and finding the troll's weakness.
The dog might be constantly following in the cartoon because it's looking for food or it's trying to be part of the action. Maybe it's following its owner or a character it likes.
It could be that the car was behaving strangely or matching the description of a vehicle involved in a crime. So, the cops are following it to investigate.
Maybe the dog sees something interesting or is attached to a particular character. It could just be following out of curiosity.
Overall, it could be moderately close. The cartoon might adapt some aspects for better visual presentation or to make it more appealing to the target audience, but the core of the commandments should still be there.
Maybe the dog is hungry and wants to find the food to satisfy its hunger.
Well, baby ducks follow their mom because she shows them the way, helps them find food and teaches them important survival skills.