By age 30, Epic Games Inc. founder and CEO Tim Sweeney had a couple of successful videogames under his belt and was starting to make real money.

“I had a Ferrari and a Lamborghini in the parking lot of my apartment,” he recalled. “People who hadn’t met me thought I must be a drug dealer.”

Today, Mr. Sweeney, at 48, is worth more than $7 billion,...