Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Tank Game A.I.

Author
Message
Chily Dog
20
Years of Service
User Offline
Joined: 6th Nov 2004
Location: U.S.A.
Posted: 23rd Nov 2004 04:05
I was wondering how to make an AI for a tank game. What I got so far is an enemy tank with a huge hidden box around it. When the player's tank hits this box (Or becomes "in range") of the enemy tank, how do I get it to turn and fire.

Please help.

Thanks
Chily Dog
20
Years of Service
User Offline
Joined: 6th Nov 2004
Location: U.S.A.
Posted: 23rd Nov 2004 04:19
Oh, one more thing-I'm using DB Classic.
Kivu_Rako
20
Years of Service
User Offline
Joined: 10th May 2004
Location:
Posted: 23rd Nov 2004 12:47
point object 2,object position x(1),object position y(1),object position z(1)
rem if you dont have a better version of shooting...
if ticker > 100
health# = health#-1
ticker# = 0
endif
rem put this somewhere in do loop "ticker# = ticker# + 1"
if you need more... be more specific...

"geez, its probably a noobish mistake too!"
Chily Dog
20
Years of Service
User Offline
Joined: 6th Nov 2004
Location: U.S.A.
Posted: 24th Nov 2004 04:37
Very good. Thanks.

Login to post a reply

Server time is: 2024-11-27 14:33:40
Your offset time is: 2024-11-27 14:33:40