The speed bug was achieved by simply altering the speed variable on the enemy AI script attached to the enemy. The scale bug was also fairly simple and was achieved by just altering the enemies localScale property. The colour bug however was slightly more complex due to the flickering effect. This was achieved by creating a random number between 1 and 0 and if it was greater than 0.7 the enemies material colour is set to the new pink colour. As this occurs every frame this results in a constant random flicker. Below is a screenshot of the code for these bugs.
Tuesday, 6 May 2014
Enemy Visual Bugs
As an extension to the pre-existing enemy bugs it was decided that extra specific bugs would be added to the enemies. Each of these would affect a different aspect of enemy, we decided that these elements would be: scale, speed and the colour. For the scale bug the enemies would simply be twice their original size. The speed bug is used to alter the enemies speed, this can be used to make it really fast or stop completely. As the enemies speed changes its animation will also seem out of sync with the enemies movement speed which adds to the visual effect of the bug. The colour bugs simply causes the enemies material to flicker a bright pink colour, similar to the typical missing material colour. Below are screenshots of these bugs working in the game.
Labels:
Luke
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment