Eggys Games

News Archive

The Matrix

The Matrix was released in 1999 and to this day I still believe it to be the best movie ever released. Not only did it have great characters and awesome fighting scenes, but the storyline changed movies, games and pop culture forever. Referencing the matrix that we are all stuck in has become such a common reference it's a household name. The fact is it appeals to people that believe the world we live in is fake. You could take that in a literal way or take it in a more figurative way as such that the general person doesn't know whats going in life.

Of all movies in the world I believe are a must see, it is this one and the 2 sequels. It also has some of the best fighting choreography I've ever seen. It's fast but also very technical. The scene where he fights 100s of agent smiths is my favourite fight scene ever made. The moves he uses are damn right cool. 

The movie explores so many different subjects, from programming, gaming, virtual worlds, wool over our eyes, the mirror reflection, what is real and what is not real, fighting, love, survival, machines AI and more.

Leave a comment Posted in Movies and Shows by Eggy on

C# Make a Basic Array

Lets say we want to make a basic array with a list of items or weapons etc. Lets put them in an array so we can loop through them when we need too.

Start off by declaring it

//Declare Array
public string[] eggysarray;

Then of course here are the basics to setting it and changing it

void Start () {

        ///Set Array
        eggysarray = new string[] { "this", "is", "an", "array"};

        //Change individual array item
        eggysarray[1] = "isnt";

        //returned "this"
        Debug.Log (eggysarray[0]);

    }
Leave a comment Posted in Game Making Programming by Eggy on

Unity - C# Changing Between Lots of Sprites on One Object

Sometimes in a game you're going to want to have a lot of sprites on one object to make it easier to switch between them all. Lets take my Zombie dying for example, we want a bunch of gore to randomly come out of him, but we don't want to make 30 different little prefabs for each one do we? So lets make an array and make it quick and easier. 

First we make an array. Lets call it Mysprites. 

public Sprite[] Mysprites;

Now we have an array so in our inspector when we drag this code onto a prefab. It will allow us to set an array and drag out sprites onto it. Like so :

Now we have a lot of them ready to change. So on start we can do this :

roll = Random.Range (min, max);

GetComponent<spriterenderer> ().sprite = Mysprites [roll];

As we can see here we have a variable Roll that we run through 2 variables. You just need to declare them as ints of however many sprites youre going to use. 

Then it sets the spriteRenderer to display the sprite that it randomized.

There you have it, you can drag this script onto any object and be able to customize which random sprites it spawns, if you don't want it randomized you can customize it too display whichever sprite in the array you want when needed. Like for guns, ui, and more.

Leave a comment Posted in Game Making Programming by Eggy on

Standing on There Head

For my new zombie game I'm working on I had an interesting dilemma. Do I allow you to jump on a zombies head? this seemed to make things too easy when the zombie couldn't get to you. So what I did was make the zombies move there hands upwards to attack you when on there head. This allows you to still jump on them as long as you are quick. 

We can see the unity flowchart below where his attack animation an change to moving his arms up, it idles and then goes back down and returns to normal moving forwards with the arms out.


Leave a comment Posted in Upcoming Games by Eggy on