Coconut Cannon Shoot and Reload in Unity

Shooting and Reloading In this Unity 3d tutorial we will be creating a coconut cannon that can shoot coconuts and be reloaded. We’ll go over how to create a Javascript file that reloads (with sound effects) and subtracts from our total “ammo” available. We will also  destroy the game object after it has been created. […]

Crosshairs and Camera zoom in Unity

Add a Crosshair and Zoom to a Camera In this Unity tutorial we will be going over how to create a simple crosshair (a dot in this tutorial) to replace our cursor arrow. Then we’ll show you how to use a script that will be applied to our camera to zoom in using the “Field of […]

Grenades and Explosions in Unity3d

What you’ll learn In this Xenosmash tutorial we’ll go over how to create a simple grenade that explodes just seconds after we throw it. We’ll create a Javascript file to create an explosion that will react to rigidbodies nearby and cause them to fall over or even fly up in the air once hit. Copy […]

Machine Gun Automatic Fire in Unity3d

In  this Xenosmash tutorial we’ll show you how to increase the rate of fire to mimic a machine gun rate of fire. We’ll be using “GetButton” so that when we hold down the left click button we’ll have automatic fire based off  the rate of fire set in our variable “fireRate”. We will also edit […]

Automatic Fire Toggle in Unity3d

What you’ll learn In this Xenosmash tutorial we’ll  show you how to toggle our automatic fire modes. We’ll include a boolean type of variable that will be toggled by right clicking. Pressing it once will set it to true, and pressing it once more will set it to false and vice versa. When right click […]

Grenade Launcher in Unity3d

What you’ll learn In this Xenosmash tutorial we’ll show you how to create a grenade launcher in Unity3d. This grenade launcher will shoot out grenades that explode  and add force to our rigidbody boxes in our scene. We’ll be making some changes to our default grenade from a previous video by including an explosion sound […]