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.

DarkBASIC Discussion / need enemy ai

Author
Message
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 13th Mar 2004 22:53
ime using an iraq guy for my game and i need him to run at me and shoot me ive tried using the tutorials and stuff but have had no luck so could somone give me some code

*=========**=================*
*.-steve-.**.-slipknot rule-.*
*=========**=================*
JoelJ
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 13th Mar 2004 23:35
no one will give you AI code, but heres some advice...MAKE SOME.

it isnt really hard to do something if you break it down into peices.

1) WRITE IT DOWN. write down everything, EVERYTHING!!!, that you want it to do, and when it will do it.
2) SEPARATE NOTES. separate your notes into differnt areas, ex-defence, offence, moving, idleing, etc
3) PSUEDO CODE. aka fake code, make your notes look like its coded out, so when you do the actual code, you just have to go line for line thru your code and change it.
4) CODE. start coding!

there, it'll take a while getting to step 4, but it'll be worth it

The second smartest person in the world, as of TODAY!
Xander
22
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 13th Mar 2004 23:47
I know you have said that you looked at the tutorials, but have you really looked at them? Not just open the code and glance at it and say you don't understand it (not offense). Look in the manual for Dark Basic. In the back there is a walkthrough for the Monster tutorial. It shows how to make the monster see you, move towards you, and shoot at you. Study the code and learn what code makes the game do what actions. Remember, every bit of code is important.

Good Luck

Xander Moser of Bolt Software
Firewall: Your Computer's First Defense - Real Time Strategy game
[href][/href]
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 14th Mar 2004 14:17
sorry your right i have looked at them and tried for a while 3or4 days but then i just gave up ill try doing what u said but ill wait till ime really stuck before i post another message thanks

*=========**=================*
*.-steve-.**.-slipknot rule-.*
*=========**=================*

Login to post a reply

Server time is: 2025-05-23 09:09:49
Your offset time is: 2025-05-23 09:09:49