Blog

How to stop rigidbodies sliding and falling off moving platforms in Unity3d and 2D

How to stop rigidbodies sliding and falling off moving platforms in Unity3d and 2D
 

In this post I will demonstrate a solution to the common problem of slipping off moving platforms in Unity when using RigidBody game objects. The problem can be encountered in both 2D and 3D games, I will cover two known solutions I have come across, and explain in detail the solution […]

 

My latest project launched, The Solar Journey – An 3D interactive web adventure through the solar system

My latest project launched,  The Solar Journey –  An 3D interactive web adventure through the solar system
 

After several months of on and off tinkering, I finally managed to pack up and ship my latest personal indie project. I present to you, The Solar Journey. It’s an interactive 3D, web app which allows you to explore and learn about the solar system in a rich and exciting way. […]

 

Remote Debugging mobile apps using javascript and JSConsole

Remote Debugging mobile apps using javascript and JSConsole
 

JavaScript developers will spend most their time in the Chrome debugger, only to discover when they actually deploy to a mobile device their fancy mobile app hits all types of script errors. The problem is, you don’t have access to a console window on mobile browsers (out of the box) to […]

 

Playing sound and music on mobile with the Web Audio API

Playing sound and music on mobile with the Web Audio API
 

The Web Audio API is a BEAST. Most tutorials I have come across focus on the amazing features set it has. But how the hell do we play a simple sound or music file? Read on and I will show you.

 

An Introduction to the Web Audio API

An Introduction to the Web Audio API
 

If you have tried to build content for mobile web which requires audio, no doubt you have run into many issues. So called ‘HTML5 audio’ is not what it’s cracked up to be, and was massively oversold by Apple (when it sought to destroy the flash browser plugin). When the […]

 

Detecting device orientation change in javascript

Detecting device orientation change in javascript
 

I’ve recently been getting stuck back into mobile app development in javascript. Being able to detect orientation change allows is really useful, It can be used to force users into a specific orientation by throwing up a notification panel saying “Please hold the device in landscape for this app”. Such […]

 

How to create realistic smoke in Unity

How to create realistic smoke in Unity
 

In this tutorial I will explain how to create a realistic looking smoke effects in Unity. It will be your typical upwards smoke, which is ideal for camp-fires, smoky car engines. Basically anything that burns. It’s also an effective way to simulate steam (for both 2D and 3D games). Unity […]

 

How to stop falling through floors and colliders in Unity

How to stop falling through floors and colliders in Unity
 

Recently I have been working on a 2D platformer which uses the inbuilt Unity Physics and Rigidbodies. One of the challenges I ran into was  that when the player moved above a certain velocity, it would sometimes pass through colliders. This would lead to the player getting stuck inside the […]

 

How to Setup your characters 2D Colliders in Unity

How to Setup your characters 2D Colliders in Unity
 

I’ve been tinkering with Unity’s 2D tooling since it was officially released in v4.3. With each new version we see some improvements in the 2D tools and workflow, but alas it’s far from perfect and as a result getting things to work the way you want is all about trial and error. […]

 

Understanding GetButton and GetKey inputs in Unity

Understanding GetButton and GetKey inputs in Unity
 

Unity’s button / Input system has been the source of confusion for many newcomers. It’s no suprise, after all we have  GetKey, GetKeyDown, GetKeyUp,  GetButton, GetButtonDown, GetButtonUp. So let’s try make sense of it all.   GetKey / GetKeyDown / GetKeyUp Input.GetKey(…) will be familiar to developers coming from other platforms like […]