When you are coding your game, the size and structure of your code can rapidly become overwhelming over time, unless you have, from the beginning, set a defined strategy that you will follow to ensure that your code will grow in a way that is manageable. To achieve this goal, there are several ways that […]
Hey 🙂 To help you kick start 2018 in style, I am offering 70% discount on all my books until midnight this Friday.
In your games, you will often need to detect collisions between objects. This can be related to NPCs or objects that you will collect or interact with. For this purpose, you can use (and monitor) colliders. However, the way you manage collisions, and the methods to be called in this case, will highly depend on […]
As you will start your journey through C# coding, you may sometimes find it difficult to interpret the errors produced by Unity in the console. However, after some practice, you will manage to recognize them, to understand (and also avoid) them, and to fix them accordingly. The next list identifies the errors that my students […]
In this post, we will be looking at coroutimes, and see how they can be used in Unity. This concept is very important, especially when you want to include tasks that may slow-down your overall game, such as loading for a file and waiting for this to be completed.
Instantiating and Casting Using C# through Unity, you will at some point, need to create (or instantiate) new GameObjects; this can be done in several ways; the first way could be to call the constructor of the class GameObject as in the next code. GameObject g = new GameObject (); Another way, is to use […]
Introduction In this post we will be looking at how effectively use Transforms in you code to be able to implement some interesting (and much needed) effects and features including: translations, rotations, and animations.
In Unity, when using C# to create your game, you will be writing statements and creating new classes in C# following an object-oriented programming syntax. However, compared to the usual Object Oriented programming practices, Unity’s syntax may seem different, at first glance, even to seasoned developers. So this post will help you to compare […]