The Daily Click ::. Forums ::. Klik Coding Help ::. AI Problem
 

Post Reply  Post Oekaki 
 

Posted By Message

Jim Joe Johnson



Registered
  28/03/2004
Points
  45
5th April, 2004 at 19:25:36 -

Okay, I dont really have a problem with my games AI. THats cuz it doesent have any. The bad guys move around with a Path Movment and you have to avoid them. How do I make Them chase you? Is there a way to have them do certain things when they see you? Please help!

 
"Nasty, tricksy Hobbitts!"

AsparagusTrevor

Mine's a pint of the black stuff

Registered
  20/08/2002
Points
  2364

Game of the Week WinnerHas Donated, Thank You!VIP MemberEvil kliker
5th April, 2004 at 19:30:07 -

What type of game is it? Platform, top-down, scrolling shooter or what? If it's top down, a very simple AI would be to have the enemy as a bouncing ball movement, and have an event where every 0.5 seconds or something the enemy looks in the player's direction. Anything else is more complex, it'd help to know what type of game it is.

 
Image

RapidFlash

Savior of the Universe

Registered
  14/05/2002
Points
  2712
5th April, 2004 at 20:10:43 -

If you want something to follow the player, set the character to a bouncing ball movement and do the Look at... statement in the Direction menu. Of course, you'll need to debug certain things (such as flying off the ground in a platformer or going through walls in a top-down shooter). Specify what game and I can help you more.

 
http://www.klik-me.com

Jim Joe Johnson



Registered
  28/03/2004
Points
  45
5th April, 2004 at 20:18:01 -

Its a platform game.

 
"Nasty, tricksy Hobbitts!"

Echisketch(PS)



Registered
  20/03/2004
Points
  852
5th April, 2004 at 21:25:28 -

You should ask the warbot 2 team some AI tricks, in that department that game is nearly perfect.

I'm working on sum P form AI, once i figure a good method ill tellz yah.

Image Edited by the Author.

 
"Everytime you use Kazaa, a metallica band member dies a little."
Quote Jonathon Smeby.

Echisketch(PS)



Registered
  20/03/2004
Points
  852
5th April, 2004 at 23:12:48 -

http://81.99.81.238/echisketch/Platform%20AI%20Example.zip (5kb.)

Slightly buggy but fairly good platform AI engine, sry for no commenting on code, but I didn't have the time, but it's fairly easy to understand actually.

 
"Everytime you use Kazaa, a metallica band member dies a little."
Quote Jonathon Smeby.

Muggus

Possibly Insane

Registered
  31/07/2002
Points
  2958
6th April, 2004 at 05:17:00 -

Wow...everyone's looking for Ai these days, and it just happens to be one of the things we are working here at the Muggus Institution.

It's difficult to describe the workings of even the most simple platform Ai that has some level of actual intelligence, ie, doesn't follow mindlessly, without using some kind of example. PM me or email me, or whatever.
I've worked on a number of platform Ai's in my time, just depends on what exactly you want it to do, and how much you are willing to put into your game to make it work.

 
MUGGUS
Come and annoy me more at
www.muggus69.tk
STOUT ANGER!!!

Jim Joe Johnson



Registered
  28/03/2004
Points
  45
6th April, 2004 at 17:06:22 -

thx for the example, my enemies follow the guy around now. But they just float everywhere! Can someone explain an easy way to stop those dudes floatin around?

 
"Nasty, tricksy Hobbitts!"

Echisketch(PS)



Registered
  20/03/2004
Points
  852
6th April, 2004 at 17:13:23 -

i think my example explained that.

 
"Everytime you use Kazaa, a metallica band member dies a little."
Quote Jonathon Smeby.

Jim Joe Johnson



Registered
  28/03/2004
Points
  45
6th April, 2004 at 17:51:07 -

It did.... but I still dont really get it!

 
"Nasty, tricksy Hobbitts!"

Echisketch(PS)



Registered
  20/03/2004
Points
  852
6th April, 2004 at 17:53:29 -

oh...... That's a complement to me , i updated it and it has a few less bugs and Im gonna comment it right now.

 
"Everytime you use Kazaa, a metallica band member dies a little."
Quote Jonathon Smeby.

Echisketch(PS)



Registered
  20/03/2004
Points
  852
6th April, 2004 at 18:04:23 -

uploaded, download the example again, slightly bug-fixed, features added, code commented, have fun!

 
"Everytime you use Kazaa, a metallica band member dies a little."
Quote Jonathon Smeby.
   

Post Reply



 



Advertisement

Worth A Click