Wednesday, 20 May 2015

BA6: Game prototype: V.0.5

Evolution prototype V.0.5 feedback number 2

when I allowed people to play the version of the game V.0.4 I asked for some feedback about the more improvements that the game could undertake in order to have their gameplay. Some people asked for a feature similar to that of other tower defence game is a great layout of the tower placement instead of the tower is being placed down randomly on a flat plane they would have to take up a square in a grid format.

Build manger
I took this advice on board and one about creating this new mechanic I did have to look into many different tutorials on how to cope with something like this but in the end discovered a way of using ray cast in order to create this grid layouts. 

Raycast tower selection
The way this this script works is that their attaches to a camera then it created a break asked from the camera  every update if the rate cast hit a player pad which is an object with the type of player pads it will then select this object and cover it in a new material.



once this had is highlighted it can then be used to instantiate a tower and then once that a tower is instantiated on top of this it changes the pads tag to power its full which means that it will not become highlighted when it are as constructive meaning that players can understand here another tower on top of this effectively creating a grid layout system the towers.










No comments:

Post a Comment