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 / HELP A I for people and FPs

Author
Message
AlexI
21
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 15th Jan 2005 01:02
i have coded quit a lot of this 007 game i am making but i am having a problem.
(1) i try and put the gun in the right hand corner but it just appears right in your face so i changed it slightly so that you are a little bit far away. but how can you put it in the cornner. i have tried positioning the camera and object. It just always appears in the center??????

(2) how can i make some idiot gaurds walk round a skyscrapper. I hardly know what ai is by the way ??? i need them to press an alarm switch.

(3) just makes some differnt people shoot you. same as question 2 but shoot you instaed???
Ali M Oldboy
21
Years of Service
User Offline
Joined: 6th Nov 2004
Location: England, UK
Posted: 15th Jan 2005 02:42
1. Rotate the gun 180 degrees until it faces the back
2. I'm afraid I can't help with this one
3. Program a bullet coming out of the object

Cheers,
Ali M

[b]Nukesoft[b]
[b]Bigfoot's Choice! [b]
AlexI
21
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 15th Jan 2005 02:55
thanks
Steve Fash
23
Years of Service
User Offline
Joined: 31st Dec 2002
Location: Doncaster, UK
Posted: 15th Jan 2005 03:07
Use waypoints if you just want them to be dumb. Set their start position and mark it as a variable eg pos1. Write a loop that checks if they have reached pos2. To do this you may have to increase or decrease an x, y, or z position. When they reach pos2 then set this as their current point and then do them same for pos3 and so on...
Make sure after the last point you add a loop to bring them back to pos1 and then your enemy will repeat it's movement until such time as you code it to do otherwise.
I don't have any code to hand for you I'm afraid as the last version of something similar to this I wrote was in blitz basic(for a really basic pacman clone).
Hope this helps ya...

For game/demo music for YOUR PC productions visit:-www.futuredevelopments.org.uk
Steve Fash
23
Years of Service
User Offline
Joined: 31st Dec 2002
Location: Doncaster, UK
Posted: 15th Jan 2005 03:08
Actually if you look at the code in the NGC collision demo their guards do pretty much what you are asking....

For game/demo music for YOUR PC productions visit:-www.futuredevelopments.org.uk
AlexI
21
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 15th Jan 2005 05:17 Edited at: 15th Jan 2005 05:19
whats the ngc colision

and thanks for your help.

i need code i not that good at dbc
anyone help me
Ali M Oldboy
21
Years of Service
User Offline
Joined: 6th Nov 2004
Location: England, UK
Posted: 15th Jan 2005 07:20
S'okay!

Cheers,
Ali M

-- Nukesoft --
-- Tv has changed our lives...FOREVER! --
DeHonCha
21
Years of Service
User Offline
Joined: 2nd Dec 2004
Location: A world of my own...
Posted: 9th Feb 2005 06:28
so ur here too huh hi?

For when they said I couldn't, I did...
AlexI
21
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 9th Feb 2005 14:59
just use the orther thread dehoncha

Login to post a reply

Server time is: 2026-07-22 08:42:43
Your offset time is: 2026-07-22 08:42:43