Because it’s a long introductory phrase (and also an adverbial phrase — you can’t get away from these things! *wicked copyeditor laughter*), Playing in the river needs a comma after it.
Playing in the river, a local kid finds a dragon egg. Not knowing any better, they decide to hide it in their closet.
You may want to change it to the egg for clarity, but that’s not required.