Unity Ninja Unity 3D Forum
To have exclusive access to all downloads, recourses and links within this forum, a free registered account is required. Just a heads up Wink

You are not connected. Please login or register

Unity Ninja Unity 3D Forum » FREE Project Downloads & Recources » Scripts » i need scripts to enemy defeated animation

i need scripts to enemy defeated animation

View previous topic View next topic Go down  Message [Page 1 of 1]

1 i need scripts to enemy defeated animation on Thu Jun 16, 2016 5:04 pm

adnanss


Member [Lv. 3]
Member [Lv. 3]
hello guys i'm new in this website and i'm new game developer i need scripts to enemy defeated animation...............plzzzzzzz help me..

View user profile http://www.unityninja.net

2 Litle LifeEnemy Script on Sat Jun 25, 2016 3:48 am

PitbullM


Member [Lv. 3]
Member [Lv. 3]
I write the code but to study to understand.
Do not just copy it
Hello
Wink


Code:

var Enemy Transform ;
var DieAnimName : String;
var DDelay =0.0;
var hitPoints = 100.0;

function Awake(){
 Enemy = this.transform;
}

function ApplyDamage (damage : float) {
 if (hitPoints <= 0.0)
 return;
 hitPoints -= damage;
 if (hitPoints <= 0.0)
 Enemy.GetComponent.<Animation>().CrossFade(DieAnimName);
}

View user profile

adnanss


Member [Lv. 3]
Member [Lv. 3]
tkankyou so much let me try to understand this code...................again thankyou..

View user profile http://www.unityninja.net

adnanss


Member [Lv. 3]
Member [Lv. 3]
I understood this code plz reply me a code of my professional fps shooter



Last edited by adnanss on Tue Jun 28, 2016 5:23 pm; edited 1 time in total (Reason for editing : Sorry I forgoty my full message)

View user profile http://www.unityninja.net

5 Re: i need scripts to enemy defeated animation on Wed Jun 29, 2016 12:40 am

PitbullM


Member [Lv. 3]
Member [Lv. 3]
Sorry, but I did not understand.

View user profile

6 Re: i need scripts to enemy defeated animation on Wed Jun 29, 2016 12:43 am

PitbullM


Member [Lv. 3]
Member [Lv. 3]
If you need code to do your FPS you can also download it in the forum.

[You must be registered and logged in to see this link.]

View user profile

adnanss


Member [Lv. 3]
Member [Lv. 3]
thankyou so much do you play project igi..

View user profile http://www.unityninja.net

adnanss


Member [Lv. 3]
Member [Lv. 3]
i understood your enemy defeated code but one thing in your code i can't understand what does it mean "var"......






reply faster plzzzzzz....

View user profile http://www.unityninja.net

PitbullM


Member [Lv. 3]
Member [Lv. 3]
dear
I know you're a willing but if you do not know what it's like var how did you figure out the code ???
However var and declaring variables that you use in your code.
I suggest a read on how to program in java or c #.
I am looking around and you soon spot something.
Hello

View user profile

10 Re: i need scripts to enemy defeated animation on Sat Jul 02, 2016 1:52 am

PitbullM


Member [Lv. 3]
Member [Lv. 3]

Good
Here you will find a wealth of information.
There are several books
Enjoy the reading


[You must be registered and logged in to see this link.]

View user profile

11 Re: i need scripts to enemy defeated animation on Sat Jul 02, 2016 1:57 am

PitbullM


Member [Lv. 3]
Member [Lv. 3]
But here small tutorial

[You must be registered and logged in to see this link.]

View user profile

12 Re: i need scripts to enemy defeated animation on Sat Jul 02, 2016 3:28 pm

adnanss


Member [Lv. 3]
Member [Lv. 3]
thank you so much these books are very helpful for me.....

View user profile http://www.unityninja.net

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum