Thursday, 1 January 2015

Game Encounters: Powerup scripts continued

09/03/2015

Powerup Scripts Continued


After hours of searching and seeking help from my lecturers I've managed to solve some issues I was having before. I had to make sure that I was using getComponent correctly and not just drag each object and script onto each other in the scene if I wanted everything to function properly.

Here is my bomb script.

I added an additional sphere trigger for the explosion radius and attached a script so that when the powerup is activated the enemies inside the trigger will get destroyed.















I watched and followed the infinite runner tutorial on the unity tutorial page (http://unity3d.com/learn/tutorials/modules/beginner/live-training-archive/infinite-runner) to create my multiplier powerup.



















regards for the shield I'm still struggling as I am unable to resolve the problem with the shield sprite. The situation is that the sprite can get destroyed permanently from the scene which disables future shield powerups working. I'm still looking into a solution for the problem.


 

No comments:

Post a Comment