Page 1 of 1

Aritificial Intelligence

PostPosted: Wed Jan 09, 2008 8:29 pm
by Azou
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

Re: Aritificial Intelligence

PostPosted: Wed Jan 09, 2008 9:04 pm
by Bee-Ant
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:

Re: Aritificial Intelligence

PostPosted: Wed Jan 09, 2008 9:38 pm
by Azou
That is it :D :D Thanx!!!

Re: Aritificial Intelligence

PostPosted: Wed Jan 09, 2008 9:45 pm
by Bee-Ant
just to be honest if it's not what you want

Re: Aritificial Intelligence

PostPosted: Thu Jan 10, 2008 4:36 pm
by Kalladdolf
Bee-Ant wrote:just to be honest if it's not what you want

he will :P

Re: Aritificial Intelligence

PostPosted: Thu Jan 10, 2008 8:09 pm
by Azou
==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:

Re: Aritificial Intelligence

PostPosted: Fri Jan 11, 2008 7:39 am
by Bee-Ant
Ah OK...