Tuesday, October 27, 2015

GIFs in Unity games.

Here is a nice way to make GIFs in Unity.


Here are the results from Exo-Game:

Friday, September 4, 2015

Tool for making sprites.

I'm currently trying to git gud at making sprites. I'm terrible and really lack the patience sometimes. The tool I'm using is really awesome though. It's called Graphics Gale. http://www.humanbalance.net/gale/us/

It's great because it gives you a zoomed in and zoomed out view, has easy to create multiple frames and layers, and has step by steps logged. I find myself still struggling to draw nice things, but it's still seems like it will be good to get the job done.

Monday, August 31, 2015

New tool for making music.

I downloaded LMMS and started playing with it. It's a great little free program that let's you make music.

Their sample instruments have a pretty good sound and you can click to add notes to the measures or you can open the piano tuner and set your own notes.

Thursday, August 20, 2015

Utah Unity User Group meetup

I started a Unity User group since there was not one in Utah. Our first meeting was 8/13/2015 and I have to say it seems like a success. I've had several people reach out to me saying they started working on game dev with Unity.

I began with a presentation on UI in Unity. Then we opened the group for showing their own projects and games to each other. I think it was a good turnout with more than 30 people. There were 5 or 6 games shown and people could ask questions how they did things with it. I feel like people got something out of the meeting even though the pizza sponsor fell through.

Scene for showing different Canvas display modes.

Destiny Mock Up.

FF7 Menu Mock up for demoing Unity UI.

Group showing off their games.

Another shot of the group.

Thursday, June 25, 2015

Things I've learned about networking in Unity 5.1

In Unity 5.1 networking features were added.

In order to use them you'll want to create an empty game object. Next you will add a Network Manager component along with a network HUD component.
For any objects that you want to interact with and have loaded via network like a player you want to add the component Network identity.

This component has two flags, Server Only or Local Player Authority. Server only will have the object only live on the server. Local Player authority will have it be client only.

In your script you want to add a Using statement for Unity.Networking. Next you will want your class to inherit from NetworkBehaviour instead of MonoBehavior.
In your Update method you can have a check for if (!isLocalPlayer){return;} which will exit the update method if it's not the local player. This will prevent you from playing as multiple characters at the same time.

Thursday, June 4, 2015

How to play music in Unity

I added some music to the PH test because I was tired of not having music.

Here is my pause script which switches the tracks playing. The Main Camera object has an AudioSource object (added when you drag and drop an audio file onto it).

using UnityEngine;
using System.Collections;

public class Pause : MonoBehaviour {
    bool paused = false;
    GameObject pauseCanvas, camera;
    AudioSource audioSource;
    public AudioClip pauseClip, musicClip;
    // Use this for initialization
    void Start () {
        pauseCanvas = GameObject.FindGameObjectWithTag("PauseCanvas");
        camera = GameObject.FindGameObjectWithTag("MainCamera");
        audioSource = camera.GetComponentInChildren<AudioSource>();
    // Update is called once per frame
    void Update () {
        if (Input.GetButtonDown("Cancel")) {
            paused = !paused;
            if (paused) {
                Time.timeScale = 0;
                audioSource.clip = pauseClip;
            else {
                Time.timeScale = 1;
                audioSource.clip = musicClip;