Damage

Game Editor comments and discussion.

Damage

Postby Tytan McAnguns-PL » Tue Apr 24, 2007 2:19 pm

What i must write to damage enemy actor.
(shot collizion to enemy actor - 1 health)
limited the ammo and ammo package.
Help
Project: Ninja Fighter (full) for tekdino
Shadow mask warrior (full) 100 % IIIIIIIIIII download :
http://www.esnips.com/doc/ff4b58fa-600b ... sk-warrior
POLISH FORUM GE:
http://www.ge.4.pl
User avatar
Tytan McAnguns-PL
 
Posts: 67
Joined: Sat Mar 31, 2007 9:38 am
Location: POLAND
Score: 16 Give a positive score

Postby Troodon » Tue Apr 24, 2007 5:29 pm

Make a variable called health. Make a create actor function and add there health = 100 for example. Then in collision write: health -= 1.
Tell me if you need more help. :)
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby Tytan McAnguns-PL » Wed Apr 25, 2007 7:01 am

What to health 0 to destroy event actor?
Project: Ninja Fighter (full) for tekdino
Shadow mask warrior (full) 100 % IIIIIIIIIII download :
http://www.esnips.com/doc/ff4b58fa-600b ... sk-warrior
POLISH FORUM GE:
http://www.ge.4.pl
User avatar
Tytan McAnguns-PL
 
Posts: 67
Joined: Sat Mar 31, 2007 9:38 am
Location: POLAND
Score: 16 Give a positive score

Postby Troodon » Wed Apr 25, 2007 12:44 pm

In script editor

if (health <= 0)
{
DestroyActor("youractor");
}
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby Tytan McAnguns-PL » Wed Apr 25, 2007 4:02 pm

tekdino wrote:In script editor

if (health <= 0)
{
DestroyActor("youractor");
}


In where script editor?
Create Actor?
Project: Ninja Fighter (full) for tekdino
Shadow mask warrior (full) 100 % IIIIIIIIIII download :
http://www.esnips.com/doc/ff4b58fa-600b ... sk-warrior
POLISH FORUM GE:
http://www.ge.4.pl
User avatar
Tytan McAnguns-PL
 
Posts: 67
Joined: Sat Mar 31, 2007 9:38 am
Location: POLAND
Score: 16 Give a positive score

Postby Troodon » Wed Apr 25, 2007 4:03 pm

In the draw actor of your actor.
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby Tytan McAnguns-PL » Wed Apr 25, 2007 4:15 pm

Thanx and limited the ammo and package.

And get the new weapon to have this?
Project: Ninja Fighter (full) for tekdino
Shadow mask warrior (full) 100 % IIIIIIIIIII download :
http://www.esnips.com/doc/ff4b58fa-600b ... sk-warrior
POLISH FORUM GE:
http://www.ge.4.pl
User avatar
Tytan McAnguns-PL
 
Posts: 67
Joined: Sat Mar 31, 2007 9:38 am
Location: POLAND
Score: 16 Give a positive score

Postby Troodon » Wed Apr 25, 2007 4:23 pm

your actor -> collision -> any side of ammo package

Code: Select all
ammo += 10
Replace with 10 the amount.

Then when you shoot
Code: Select all
if (ammo >= 1)
{
the shoot event
}
if (ammo <= 0)
{
ammo = 0;
}
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby Tytan McAnguns-PL » Sat Apr 28, 2007 7:27 am

What in the "the shoot event" ?
I mast this have got !
Project: Ninja Fighter (full) for tekdino
Shadow mask warrior (full) 100 % IIIIIIIIIII download :
http://www.esnips.com/doc/ff4b58fa-600b ... sk-warrior
POLISH FORUM GE:
http://www.ge.4.pl
User avatar
Tytan McAnguns-PL
 
Posts: 67
Joined: Sat Mar 31, 2007 9:38 am
Location: POLAND
Score: 16 Give a positive score

Postby Troodon » Sat Apr 28, 2007 4:50 pm

The thing how you shoot. For example:
Code: Select all
CreateActor("shot actor", "shot animation", "no parent", "no path", 0, 0, false);
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron