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

Post Reply  Post Oekaki 
 

Posted By Message

Retired Kliker Lazarus

The Ed Wood JR of TDC

Registered
  18/07/2003
Points
  7363
9th June, 2005 at 18:20:39 -

Does anyone have any good techniques for platformer AI?
Quite honestly, I've never really been that good at it- it alway's turns out to be crap.
I know how to make it so that the enemy can tell when it's to close to the edge of a platform, but that's basicly all that turns out right.
So does anyone have any ideas? Are there any examples out there?

 
Fine Garbage since 2003.
CURRENT PROJECT:
-Paying off a massive amount of debt in college loans.
-Working in television.

Cazra

Crazy?

Registered
  24/07/2002
Points
  4472

Game of the Week WinnerVIP Member
9th June, 2005 at 18:36:00 -

what kind of a platform AI are you looking for? There's tons of different kinds.

 
n/a

Pete Nattress

Cheesy Bits img src/uploads/sccheesegif

Registered
  23/09/2002
Points
  4811
10th June, 2005 at 05:50:51 -

Use the collision mask in MMF and object loop fix. Your enemies will be able to tell if they're reaching the end of the platform and I even made it so they can jump over obstacles.

http://www.clickteam.info/kb/start/index.php?showtopic=314 < Jannis' object loop fix tutorial
http://www.clickteam.info/kb/start/index.php?showtopic=43 < Tigerworks' object loop fix

They're both exactly the same but I felt... fair representation and all!

 
www.thenatflap.co.uk

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
10th June, 2005 at 15:02:37 -

Really you're only limited by imagination and time. How much detail is actually feasible?

Just imagine things from the enemy's point of view.

Maybe they have levels of alert. They start with 0 (unsuspecting). If you run on the platform underneath, they'll go to 1 (suspicious). This means that when they get to the end of the platform, instead of turning around, they'll pause and look down.

If they don't get any other alerts for X seconds, then they'll go back to 0. However, if you make lots of noise (you run around a lot, or you shoot), they go to level 2 (alerted). When this happens, they'll radio their buddies. This means that every enemy in the whole level is set to high alert! They're on the lookout for you!

The guy who heard you may go investigate by jumping down to the next level.

The advantage of sneaking up on people is that on level 0, they'll take a moment to react. If you jump down behind them, they'll take a second to register it. If you get them at level 1 (suspicious), they'll react a bit quicker.

If you get them on alert, however (level 2), then they'll spot you immediately and start shooting.

They also get alerted if the come across dead bodies.


You could have more advanced enemies later on who notice used ammo cases, bullet holes, or even patches of blood.

This can all be done with alterable values and detectors.

Basically, it can be as advanced as you want.

 
191 / 9999 * 7 + 191 * 7

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
10th June, 2005 at 16:03:24 -

Laz, if you want, DC mail me, I have a bunch of platform AI examples that could serve you as base concepts. I'll take the time out to comment them if you'd like.

 
Craps, I'm an old man!
   

Post Reply



 



Advertisement

Worth A Click