Is C++ Gameplaying Programming hard to learn?

Hi Tamara465,

First of all, generally speaking, yes learning C++ is hard. But it’s the GOOD kind of hard! For me, one of the things I like most about programming is taking on new stuff that I’m not clever enough to do, then figuring out what I need to learn to be clever enough to beat it, then learning it, then beating it :slight_smile: (at least, that’s the mindset that works for me and let’s me do the little bits of stuff I can do).

Secondly, more specifically, yes it does take years to really start getting the hang of programming (this is more obvious in hindsight after you’ve been doing it for a long time) but that doesn’t mean that you can’t have fun and do cool stuff right from the start (especially in an awesome game engine like UE4). It just means that the longer you do it the more powerful you will become (mwuhahahahaha).

So I’ve noticed (again, in hindsight) that my programming journey - specifically with C++ - has gone through a number of stages:

C++ basics :

  • learning how to setup all the required software (i.e. UE4 and VS2015)
  • learning how to make a basic empty class
  • learning how to compile C++ code
  • learning how to make and use variables (for storing information) in your class
  • learning how to make and use methods (for coding behaviours) in your class
  • learning how C++ likes to do things like conditional branching (i.e. if statements) and iterative processing (i.e. loops)
  • learning how to make and use objects from classes and hook them up to each other (hierarchically) with things called pointers

UE4 basics :

  • Figuring out that UE4 is basically just a bunch of pre-existing classes that some nice people have written for you already (thanks epic!)
  • Figuring out that the classes you write basically piggy back on top of these built in classes either adding new code to their existing methods and or adding entire new methods of your own
  • Learning what the key built in classes are in UE4, what their properties and methods are and how to hook them up together properly (in tutes to start with, then more and more in the API docs)

Beyond UE4 :

  • Figuring out that sometimes you have to write entirely new classes of your own that are not based on any of the existing ones (which by now probably won’t be a problem)
  • Finding out to your delight that there is a universe of C++ libraries out there that can do all sorts of weird and wonderful things and that some of them can be integrated into your UE4 project
  • (Assuming you can figure out how to build them to a DLL)

Anyways, I’m sure there are a gazillion other people here on the forums who could offer much wiser guidance than me about getting started in C++ and UE4, this is just what’s worked for me (sort of), hope it helps :slight_smile:

And if you’d like to see an example of the sort of thing that you can do when you know how to code in C++, check out my tute on dynamic textures in UE4 at http://www.showmethatagain.com.