TNT Basic Forums > Programming Q&A
baddie AI examples? and a code question...
< Last Thread     Next Thread >
Thread        Post A Reply

06-15-2003 04:20

Posted by:

Click Here to Email JAS   Find more posts by JAS

Are there any example of enemy AI for a top-down game around that I can take a look at?

What is wrong with this piece of code? it tells me that it expected a numeric value in place of blvd (it has a number assigned to it already) in both versions of this line?

if difx=>blvd then bsight=bsight+1

if difx>blvd then bsight=bsight+1

It's a piece of a line of sight code for my baddies, but I just can't get it to work.

Thanks for the help in advance!

06-15-2003 04:33

Posted by:

Earth>USA>New Jersey>Clifton>My Chair

Click Here to Email DanLurie   Find more posts by DanLurie

Try changing => to >=, maybe?

06-15-2003 10:04

Posted by:

Click Here to Email JAS   Find more posts by JAS

Man, now I feel really stupid... why didn't i think of that???

It seems to work though I'm missing some more (though not much) code and then I can test it.


All times are GMT        Post A Reply

Forum Jump:
< Last Thread     Next Thread >

< Contact Us - TNT Basic >

Powered by: vBulletin Lite Version 1.0.1 Lite
Copyright © Jelsoft Enterprises Limited 2000.