ai

Talk about making games.

ai

Postby theta » Mon Jul 18, 2005 5:10 am

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 :?
theta
 
Posts: 10
Joined: Sat Jul 16, 2005 8:57 pm
Score: 0 Give a positive score

Postby jazz_e_bob » Mon Jul 18, 2005 5:40 am

Good question.

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

http://www.artsystems.com.au/game%20editor/moveto%20demo.zip
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score

Postby theta » Mon Jul 18, 2005 5:44 am

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?
theta
 
Posts: 10
Joined: Sat Jul 16, 2005 8:57 pm
Score: 0 Give a positive score

Postby jazz_e_bob » Mon Jul 18, 2005 5:47 am

So it goes after the nearest actor of a particular type perhaps?
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score

Postby theta » Mon Jul 18, 2005 5:53 am

yes
how could i do that?
theta
 
Posts: 10
Joined: Sat Jul 16, 2005 8:57 pm
Score: 0 Give a positive score

Postby jazz_e_bob » Mon Jul 18, 2005 12:10 pm

Trickier.

8)
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score

Postby jazz_e_bob » Tue Jul 19, 2005 3:55 am

But it CAN be done.

We would need to build a function.

char *nameOfClosestClone( char actorName )
{

// This is the tricky bit...



}
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score

Postby jazz_e_bob » Wed Jul 20, 2005 4:52 am

Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest