FragMate CommunityLog in

FragMate - Software and Game Developer Community, including Resources, Forums, Marketplace & More.

i need scripts to enemy defeated animation

Share

descriptioni need scripts to enemy defeated animation

more_horiz
hello guys i'm new in this website and i'm new game developer i need scripts to enemy defeated animation...............plzzzzzzz help me..

descriptionLitle LifeEnemy Script

more_horiz
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);
}

descriptionRe: i need scripts to enemy defeated animation

more_horiz
tkankyou so much let me try to understand this code...................again thankyou..

descriptionRe: i need scripts to enemy defeated animation

more_horiz
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)

descriptionRe: i need scripts to enemy defeated animation

more_horiz
Sorry, but I did not understand.

descriptionRe: i need scripts to enemy defeated animation

more_horiz
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.]

descriptionRe: i need scripts to enemy defeated animation

more_horiz
thankyou so much do you play project igi..

descriptionRe: i need scripts to enemy defeated animation

more_horiz
i understood your enemy defeated code but one thing in your code i can't understand what does it mean "var"......






reply faster plzzzzzz....

descriptionRe: i need scripts to enemy defeated animation

more_horiz
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

descriptionRe: i need scripts to enemy defeated animation

more_horiz

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.]
Permissions in this forum:
You cannot reply to topics in this forum