Author: Xander Blain

  • Unity Script: Find all Assets and Prefabs with a given Component by Type

    Hi Xander here… The current game in development is Endless Elevator. During the development cycle we have used a bunch of placeholder audio files and Audio.Play() functions. This is to get some quick auditory feedback from the game during testing phases. It’s much more fun to hear a gun go off and have the bullet…

  • Unity: How to Create a Cut-Scene with Cinemachine and Unity Recorder

    Hi Xander here, For Endless Elevator we wanted to do an Introduction Scene for the game. The gameplay, as the name suggests, consists of climbing endless elevators and escalators. The player navigates floor after floor in the bad guys luxury hotel and tries to climb as high as possible while defeating the bad guys. It’s…

  • Unity 2D Curves using Triangles

    Hi Xander here…. I know I shouldn’t be spending time doing this sort of stuff when I got games to make but I got really sidetracked with this little brain boiler. I got the idea while doing some maths research and came across an image of a cat’s cradle spun in a triangle. The way…

  • Unity Hinge Joint

    Hi Xander here… For our game Endless Elevator, which is in development, we have a bad guy who is a knife thrower. I know nasty. In keeping with the blocky style of the characters in the game only his throwing arm moves and the rest of him is rigid. We decided to use the Unity…

  • Unity How To Rotate

    Hi Xander here. I kept making mistakes and wasting programming time when it comes to Transform.Rotations. It can be hard to remember what all the inbuilt Unity Vector commands do and when it’s easier to use Quaternion.LookAt() or a different inbuilt command. so I created an example project that included common ways to handle a…

  • Text Adventure Design and Programming

    Hi Xander here…. This post is about the design and build of our Text Adventure game over the course of a week. This was a “proof of concept” project to make a framework for a text based game that could be re-used and expanded on for future use. It’s not a polished game but an…

  • Making a Custom Navigation Mesh for AI

    Hi Xander here… This week I decided to totally redo the way I have been handling character movement. I used to have a free ranging character controller that basically moved in the direction your joystick wanted. I never really had that as my vision for this game as I wanted a more 2.5D feel to…

  • Oversharing About Overriding

    The idea of a class and how objects, scripts or behaviours are implemented in Unity is pretty straightforward. Each object or type is a class and each script is a sub class of the MonoBehaviour class. So we are using classes all the time. Even if a script isn’t a behaviour, like a controller script…

  • Why Normalize()

    I’ve been doing some work on the AI for enemy behaviours for an unreleased game Endless Elevator and have been delving into the book “Unity 2018 Artificial Intelligence Cookbook – Second Edition” by Jorge Palacios. It uses the Normalize() function regularly to record the direction of an object in relation to another object and it…

  • Image File Size in Unity and their Impact on Start Up Time on Android

    Xander here… We have been Beta Testing our soon to be released game The Dog Run and it’s been mostly OK but we had a number of issues with memory on smaller or older devices.  We made some gains with modifying our audio files (See this post) but were still running into niggling crashes on start…