Sunday 16 February 2014

Lights following me

I have been using scripting to try and make two different lights follow me depending on player input.




I successfully have managed to do both, by pressing either R or B either the red or blue light will follow the player. I have done this by setting the lights co-ordinates = to the players, whenever W,A,S,D are pressed.
 
 
There is a variable that stores which light is currently following the player, once the light choice changes, so does that following the player. And the light returns to its original position.

Monday 10 February 2014

My Unity Maze

This is the first ambitious project I have attempted using Unity. It is a simple maze that incorporates the first person camera package, scripting and simple level development using in game objects. This is the top down view of my maze.


As the user moves around you can see that the spotlights change from red to green in order to signal where the player has been using javascript.


The maze is made up of the same prefab arranged in a 8x8 grid.


Nothing happens as such when the player gets to the end, but it is a soloution to a simple game designing task which I think worked well. Here is a view from inside the maze.