Aritificial Intelligence

You must understand the Game Editor concepts, before post here.

Aritificial Intelligence

Postby Azou » Wed Jan 09, 2008 8:29 pm

Hello!! I am now thinking about a way to create an artificial intelligence!! Please,tell me if these codes below are good or not :D

If Ai==1;

{

Easy=1;

ChangeAnimation(EnemyPunching Forward);

Combos=1;

ChangeAnimation(Enemy punching 1 Forward);

AnimationFinish(EnemyPunching 1)Change Animation(Enemy punching 2);

AnimationFinish(EnemyPunching 2)Change Animation(Enemy punching 3);

AnimationFinish(EnemyPunching 3)Change Animation(Enemy stance normal);

Collision/any side of player/Script editor/life=-25;

Combos=0;

Easy=0;

Ai==0;

}
All these days i'm thinking about that :P
User avatar
Azou
 
Posts: 514
Joined: Thu Sep 13, 2007 1:12 pm
Score: 35 Give a positive score

Re: Aritificial Intelligence

Postby Bee-Ant » Wed Jan 09, 2008 9:04 pm

Code: Select all
If(Ai==1)
{
    if(Easy==1)
    {   
        ChangeAnimation(EnemyPunching Forward);
        Easy=0;
    }
    if(Combos==1)
    {
        ChangeAnimation(Enemy punching 1 Forward);
        Combos=0;
    }
    Ai=0;
}


Collision>any side of player>Script editor>life=-25;

AnimationFinish(EnemyPunching 1)>Change Animation(Enemy punching 2);
AnimationFinish(EnemyPunching 2)>Change Animation(Enemy punching 3);
AnimationFinish(EnemyPunching 3)>Change Animation(Enemy stance normal);

Is this what you mean??? :roll:
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Aritificial Intelligence

Postby Azou » Wed Jan 09, 2008 9:38 pm

That is it :D :D Thanx!!!
User avatar
Azou
 
Posts: 514
Joined: Thu Sep 13, 2007 1:12 pm
Score: 35 Give a positive score

Re: Aritificial Intelligence

Postby Bee-Ant » Wed Jan 09, 2008 9:45 pm

just to be honest if it's not what you want
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Aritificial Intelligence

Postby Kalladdolf » Thu Jan 10, 2008 4:36 pm

Bee-Ant wrote:just to be honest if it's not what you want

he will :P
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: Aritificial Intelligence

Postby Azou » Thu Jan 10, 2008 8:09 pm

==Kalladdolf== wrote:
Bee-Ant wrote:just to be honest if it's not what you want

he will :P

:lol:
I AM honest!! This is what i wanted :mrgreen:
User avatar
Azou
 
Posts: 514
Joined: Thu Sep 13, 2007 1:12 pm
Score: 35 Give a positive score

Re: Aritificial Intelligence

Postby Bee-Ant » Fri Jan 11, 2008 7:39 am

Ah OK...
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score


Return to Advanced Topics

Who is online

Users browsing this forum: No registered users and 1 guest