Just a bit of trial and error as I go. It's gotten easier with a few engine updates and gaining more knowledge over the years. Honestly, the first step is to just make a normal game to get the ropes, watch tutorials, read the documentation, and soon you can pick up all the things you need to make the type of game you are looking for.
Just never stop learning, you learn more things as you go. Study some games. And make small games that teach you every aspect of game development little by little.