How I make Games: Part 2

Okay it is time to carry on with telling you everything about the mystery game! I am a bit behind but I will catch up in this episode. One thing I didn’t tell you was when I make games I don’t really follow a development pattern or system, I just do it and keep adding features as I need them. Because it is just me by myself making this game I don’t need to follow a system.

Anyways I started by sketching out what I wanted the character to look like so I could make him with animations, so I could make the character controller first. Here is the basic modelling I did for a low poly alien dude, note there will be no materials or textures until after the game is tested and working.

fred-300x159

After this image was taken I made an eye and a few other modifications to the model. I then started making a rig, or armature, for the character, which I had named “Fred”. This was the first armature I made:

rig-300x160

I then decided the rig was too simple and needed to be ramped up, so I made the whole thing again! Now with IK (inverse kinematics) constraints. The yellow bones are IK bones and are controlled by moving around the hand causing the arm to bend automatically in a realistic way.

new-rig-300x160

I then started animating the character, making things like the walk cycle, the idle cycle (when Fred is standing around) and the jumping animation. This is the dope sheet for the animation. Each little dot represents a keyframe for each bone.

dopesheet-300x158

This is the animation graph. It looks a bit complicated but its really simple, each line represent the position of each bone over time. The smoother the curve, the smoother the animation!

animation-graphs-300x159

After doing this I started to bring in all this data into the Unity engine. To save time and my brain power I decide to use PlayMaker for this project. It is an extension to the Unity editor for doing visual scripting.

After much thought this is the character controller I made using PlayMaker, I colour coded everything and labeled eveything so it is much easier to read.

playmaker-300x186

Then I did some testing and it worked! Here are some pictures of Fred moving around and animating in Unity. If I get around to it I will make a video of the character controller so you can really see it working.

jump-300x224 walking-300x226
That’s it for today! I am not telling you much about what you do in the game as I am going to let you figure it out by reading the series and helping me make changes along the way! Thanks for reading and don’t forget to come back!