x


Lives subtract

hi, my problem is this, I'm making the system of life, I've tenhu damage to the enemy. EX: ll life of the player when the enemy hits me I lose all health and die. I wanted to do was get three lives, for when the enemy take my health I lose a life Can someone help me?

more ▼

asked Dec 22 '11 at 10:09 PM

iron00 gravatar image

iron00
1 2 4 4

Something like

void OnCollisionEnter (Collider collider)
{
    if (collider.tag == "somethingThatKillsMe")
       KillMe();
}

?

Dec 23 '11 at 11:39 AM asafsitner
(comments are locked)
10|3000 characters needed characters left

0 answers: sort oldest
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x394
x15
x9

asked: Dec 22 '11 at 10:09 PM

Seen: 364 times

Last Updated: Dec 23 '11 at 11:39 AM