Employment law is most focused on the dynamics of power and responsibility, and expectation. Employer/Employee relationships are created through on going interactions where one party has a dramatic amount of power and control over the other, and sets expectations to be met including goals and deadlines along with the HOW those are to be met, with tools (for a wide definition of "tools") provided by the employer, expectations for hours put in, etc. Freelance contracts are often defined by a limited scope of a project and a different range of power differences. The hiring party can say "We want X units by Y deadline," and as long as the freelancer meets those particulars, its a fulfilled contract. Maybe they spend 80 hours doing it, maybe they spend 8 hours doing it; maybe they work 9-5 every day, maybe they work at it 9pm to 1am during the weekend~ Maybe they do it on their own rig, or maybe they use a PC on a college campus. The freelance contract is really only concerned about the final output and meeting those terms.
In the case of pretty much anything on the forums, it would be incredibly hard pressed to consider them any form of Employer/Employee relationship. No one party has control of the other, no one party is providing for much to the other, there are no real penalties to a party not fulfilling the terms, etc. They are, essentially, freelance contracts or work-for-hires, and the terms of those contracts can pretty much be anything the parties agree to, including providing work for credit-only and without monetary compensation. Rather famously, Matt Damon put in an appearance in Deadpool for a cup of coffee; John Candy did his bit on Home Alone in one day, and for the daily rate (what they pay extras and bit players).
Where things would get sticky with a situation like
@AquaEcho presents comes down to expectations.
For instance, claiming someone is "Staff" versus a contributor or freelancer creates an implication of an employer/employee relationship, which sets different expectations. Under most US law and employment situations, the employer owns the output of the employee barring any agreements to the contrary, but at that point the artist or coder could make workplace claims and cause the dev to run afoul labor laws regarding compensation, work conditions, etc.
As long as you're not creating that sort of relationship though, it comes down to the freelance contract terms as spelled out; if the dev had been upfront that this was a commercial game and they were asking for contributors who would receive credit but no monetary compensation, those are the terms of the contract. Under US law, the artist is typically awarded nothing extra. A lot of journals and 'zines operate under this; they accept submissions from the community, publish them, and then either provide credit-only or a nominal sum, regardless of selling 1, 100, or 10,000 issues.
If the dev was NOT up front about the end result though, then they could be in breach of the agreement and the artist or coder entitled to some amount of damages as determined by the specifics of the case and the people handling it. If the dev said they got 5% of the proceeds, then the artist could be entitled to something depending on the accounting processes used and the terms of the agreement (is it 5% of gross sales or net profits?).
My own input here comes from a number of years of working in the TTRPG publishing industry and small business retail. If I hire a high schooler to run my store counter, who has to report every Thursday, Friday, and Saturday for 8 hours a day, who gets $15/hour, who has to perform X, Y, and Z chores every shift, that's an employee. If I hire a high schooler to paint my windows for the upcoming holiday parade downtown, that's a freelance/contract worker. That high schooler painting my windows is the same as hiring an artist to provide an illustration for a book, or a sheet of sprites for a game. I have professionals I have hired to produce works for interiors, but the terms preclude using it as a cover for anything. Some artists have allowed me to use existing art gratis as a part of a larger package deal on commissioned work.
With the HS kids, one has an open-ended scenario with regular expectations, and I control all of the elements of their job. The other has a scope-limited project, with considerable freedom in terms of how they approach the job and experience comparatively nominal control by me. I have to meet minimum targets for the employee; the window painter can negotiate their terms more easily, and could say "Yea, I'll paint the windows for a box of Magic cards."
TLDR; be open and honest about wants and end uses, be communicative, be deliberate in your terminology and references to one another.