Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Doing the Space Shooter but Altering it for College

Discussion in 'Scripting' started by dkowertz, Oct 31, 2018.

  1. dkowertz

    dkowertz

    Joined:
    Sep 3, 2018
    Posts:
    12
    Hello,

    I'm doing an assignment to use the Space Shooter Game I created through Unity Tutorial vids but now I have to alter it by adding addiction UI features and a feature in game to encounter.

    I made a 3D sphere and called it mines and i made it work in spawning waves and so on like asteroids.

    Now? I want to know how to make mines invincible to the players... that you cannot shoot it down but dodge it like space Donkey Kong.

    Is there a simple code to make mines invincible to the player? You cannot destroy it but gotta dodge load of mines.

    If you need anything while finding the answer, let me know and I will get back to you tomorrow morning.
     
  2. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    Any GameObject in the game won't interact with the player at all unless you write code to make it happen. So find out where you have written code that causes the mines to be destroyed, and remove it.
     
    Kurt-Dekker likes this.
  3. dkowertz

    dkowertz

    Joined:
    Sep 3, 2018
    Posts:
    12
    I managed to get it working, thanks for helping me.