If you are a passionate game developer all you can think of is creating games. Especially when you are just starting out.

You have an idea that’s been in your head for years, and you want to make it a reality, but first, you need to learn the tools that will help you create your game.

Like most of you guys, this happened to me as well.

I just learned how to code and make games with Unity Game Engine, and I wanted to create my very first game.

It was a simple game with the player moving left and right, and the camera would move down to simulate the movement of the level.

You could pick up coins and lives on your way down, and of course, there were obstacles on your way.

My friend created the assets for me, and I was ready to build my first game.

If you are in love with game development like I am, and you created your first game, you know how awesome the feeling is.

And if you are still learning, so you didn’t have a chance to create your first game, when that time comes you will see that there is no better feeling in the world, no matter how small the game that you are creating is.

So I started my adventure. I got the player movement done, the camera was going down, collectable items were spawning and the obstacles were doing their job as well.

Everything was going smooth and all of sudden I hit a wall.

The game was so simple, and it should run on 200 frames per second, but after a couple of seconds of running the game, the framerate would drop so low that even my computer(which is a beast) could not take it.

As any other programmer, I dived right in and started searching for the bug.

I thought this was something simple that I could fix right away. But after a couple of hours of searching, it became really frustrating. And this went on for 6 days.

Yeah, that’s right, for 6 days I could not solve the problem in my project.

Every knife, hammer, or anything else that I could use to smash my computer was hidden away from me 😂

After all the time I invested in learning how to make games, and it was a lot of time, I could not solve the very first bug I encountered. You can just imagine how I felt.

But then I realized one thing - I was pressuring myself too much that I need to solve that bug right away and the more time went by, I was pressuring myself even more.

The next day I decided that I am not going to work, I am not even going to open my laptop. Instead, I am going to relax and rest my mind the whole day.

And to my surprise, this was like a programmers therapy. The next day I returned to my project, and I was able to solve the bug in 5 minutes.

Yes, the greatest enemy of my coding career, the one who was fighting me for the past 6 days surrendered after only 5 minutes.

And this was the very first big lesson that I learned in the programming world.

Don’t push yourself too much. If you can’t solve a bug after an hour or two of trying, chances are you are tired, and you need a little rest.

Go outside, relax, take a walk or go jogging, or whatever you love to do that relaxes your mind and body.

After that come back to your project, and the solution will be waiting for you.

Ever since the first time I experienced this I am using this approach.

When I have a problem, and I can’t solve it after a couple of tries, I turn on my console and play my favorite game. Or I go outside in nature, sit down and look at the sky.

After a good rest, I come back, and I manage to fix all problems in a matter of minutes.

Try it out the next time you face a problem, no matter if that problem is in a project that you are working on, or if you are just starting out and learning but you can’t figure something out.

Take a break then come back. You will see how the solution will appear magically in front of you.

—

About Fahir Mehovic

I am an online instructor teaching people how to code and make games in Unity Game Engine.

I’ve been doing that for the past 4+ years, and during that time I managed to teach over 56,000 students how to code and make games.

I have also partnered with EyeQ VR to create teaching programs for high schools in the USA.

If you are a beginner and want to learn how to code and make games, you can start with my From Scratch To Game In 40 Minutes tutorial.

It’s a short tutorial that will introduce you to game development and show you how easy it is with a simple game idea and a couple of lines of code to create a cool and fun game in 40 minutes.

Just click on the link below and get started right away:

From Scratch To Game In 40 Minutes

Feel free to connect with me on my YouTube Channel where I post tutorials on a regular basis or you can contact me on my email: developer@awesometuts.com