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
Share
Go down
Member [Lv. 3]
Member [Lv. 3]
Posts : 18
Points : 806
Rep : 1
Join date : 2016-06-09
Age : 14
Location : pakistan
View user profilehttp://www.unityninja.net

i need scripts to enemy defeated animation

on Thu Jun 16, 2016 5:04 pm
hello guys i'm new in this website and i'm new game developer i need scripts to enemy defeated animation...............plzzzzzzz help me..
avatar
{SUPER MEMBER}-LV.4
{SUPER MEMBER}-LV.4
Posts : 53
Points : 1530
Rep : 11
Join date : 2015-01-18
Age : 41
Location : Italia
View user profile

Litle LifeEnemy Script

on Sat Jun 25, 2016 3:48 am
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);
}
Member [Lv. 3]
Member [Lv. 3]
Posts : 18
Points : 806
Rep : 1
Join date : 2016-06-09
Age : 14
Location : pakistan
View user profilehttp://www.unityninja.net

Re: i need scripts to enemy defeated animation

on Mon Jun 27, 2016 4:03 pm
tkankyou so much let me try to understand this code...................again thankyou..
Member [Lv. 3]
Member [Lv. 3]
Posts : 18
Points : 806
Rep : 1
Join date : 2016-06-09
Age : 14
Location : pakistan
View user profilehttp://www.unityninja.net

Re: i need scripts to enemy defeated animation

on Tue Jun 28, 2016 5:21 pm
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)
avatar
{SUPER MEMBER}-LV.4
{SUPER MEMBER}-LV.4
Posts : 53
Points : 1530
Rep : 11
Join date : 2015-01-18
Age : 41
Location : Italia
View user profile

Re: i need scripts to enemy defeated animation

on Wed Jun 29, 2016 12:40 am
Sorry, but I did not understand.
avatar
{SUPER MEMBER}-LV.4
{SUPER MEMBER}-LV.4
Posts : 53
Points : 1530
Rep : 11
Join date : 2015-01-18
Age : 41
Location : Italia
View user profile

Re: i need scripts to enemy defeated animation

on Wed Jun 29, 2016 12:43 am
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.]
Member [Lv. 3]
Member [Lv. 3]
Posts : 18
Points : 806
Rep : 1
Join date : 2016-06-09
Age : 14
Location : pakistan
View user profilehttp://www.unityninja.net

Re: i need scripts to enemy defeated animation

on Wed Jun 29, 2016 7:53 am
thankyou so much do you play project igi..
Member [Lv. 3]
Member [Lv. 3]
Posts : 18
Points : 806
Rep : 1
Join date : 2016-06-09
Age : 14
Location : pakistan
View user profilehttp://www.unityninja.net

Re: i need scripts to enemy defeated animation

on Fri Jul 01, 2016 8:00 am
Message reputation : 100% (1 vote)
i understood your enemy defeated code but one thing in your code i can't understand what does it mean "var"......






reply faster plzzzzzz....
avatar
{SUPER MEMBER}-LV.4
{SUPER MEMBER}-LV.4
Posts : 53
Points : 1530
Rep : 11
Join date : 2015-01-18
Age : 41
Location : Italia
View user profile

Re: i need scripts to enemy defeated animation

on Sat Jul 02, 2016 1:40 am
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
avatar
{SUPER MEMBER}-LV.4
{SUPER MEMBER}-LV.4
Posts : 53
Points : 1530
Rep : 11
Join date : 2015-01-18
Age : 41
Location : Italia
View user profile

Re: i need scripts to enemy defeated animation

on Sat Jul 02, 2016 1:52 am

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.]
avatar
{SUPER MEMBER}-LV.4
{SUPER MEMBER}-LV.4
Posts : 53
Points : 1530
Rep : 11
Join date : 2015-01-18
Age : 41
Location : Italia
View user profile

Re: i need scripts to enemy defeated animation

on Sat Jul 02, 2016 1:57 am
But here small tutorial

[You must be registered and logged in to see this link.]
Member [Lv. 3]
Member [Lv. 3]
Posts : 18
Points : 806
Rep : 1
Join date : 2016-06-09
Age : 14
Location : pakistan
View user profilehttp://www.unityninja.net

Re: i need scripts to enemy defeated animation

on Sat Jul 02, 2016 3:28 pm
thank you so much these books are very helpful for me.....
Back to top
Permissions in this forum:
You cannot reply to topics in this forum