nosymmetree / Asteroids_Add-ons

Adding some small features for an Asteroids game I created
0 stars 0 forks source link

Spaceship health no descreasing #1

Open nosymmetree opened 11 years ago

nosymmetree commented 11 years ago

The Spaceship's health is not decreasing when hit by Asteroids.

nosymmetree commented 11 years ago

in asteroidController.js:

function OnTriggerEnter(other:Collider){

if(other.tag == "spaceship") {

    playerController.health = playerController.health - 3;

}

}