Page 1 of 1

ai

PostPosted: Mon Jul 18, 2005 5:10 am
by theta
i'm scared of the word
can some one help me figure out how to make a simple ai in GE?
so a baddie will go after your character AND jump if he collides with a object
i think i can do the later
but the first one....ummmm :?

PostPosted: Mon Jul 18, 2005 5:40 am
by jazz_e_bob
Good question.

This is not really ai BUT it may do the trick.

http://www.artsystems.com.au/game%20editor/moveto%20demo.zip

PostPosted: Mon Jul 18, 2005 5:44 am
by theta
thanks this should work
and i'll tell it to jump when it collides with with stuff

is there a way to get it to go after multiple actors?

PostPosted: Mon Jul 18, 2005 5:47 am
by jazz_e_bob
So it goes after the nearest actor of a particular type perhaps?

PostPosted: Mon Jul 18, 2005 5:53 am
by theta
yes
how could i do that?

PostPosted: Mon Jul 18, 2005 12:10 pm
by jazz_e_bob
Trickier.

8)

PostPosted: Tue Jul 19, 2005 3:55 am
by jazz_e_bob
But it CAN be done.

We would need to build a function.

char *nameOfClosestClone( char actorName )
{

// This is the tricky bit...



}

PostPosted: Wed Jul 20, 2005 4:52 am
by jazz_e_bob