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 / attacking me

Author
Message
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 15th May 2004 21:30
can somone give a bit of code pls to make the enemy shoot at m he walks at me now i need him to stop when hes near enough and shoot at me ive made the enemy bullet now i need him to shoot it at me pls pls pls pls

i used to be indecisive but now ime not so sure
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 16th May 2004 00:50
pls can somone tell me pls

i used to be indecisive but now ime not so sure
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 16th May 2004 15:33
put a sphere that is the radius of the distance you want the enemy to start shooting aroud your player, check for collision, and if you have collision then switch to the shooting animation, set a flag to one and while that flag is one then get the enemy to shoot, then update the bullets from the enemy for as long as they are alive and remove them when the lifetime expires, you won`t be able to see the sphere since you will be viewing it from the inside and all the faces will be culled, all you will see is the enemy respond when he gets close enough to hit the sphere you can`t see.

Mentor.

PC1: P4 hyperthreading 3ghz, 1gig mem, 2x160gig hd`s, Nvidia FX5900 gfx, 6 way surround sound, PC2: AMD 1.2ghz, 512mb ram, FX5200 ultra gfx, stereo 16 bit soundblaster, ups.
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 16th May 2004 17:17
umm i dont get what u mean i not very good at db so can somone just give me a bit of code that when hes whithin a certain distance he shoots bullets at me

i used to be indecisive but now ime not so sure
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 18th May 2004 00:47
pls pls pls pls

i used to be indecisive but now ime not so sure
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 20th May 2004 00:40
.............PLS PLS PLS PLS

i used to be indecisive but now ime not so sure
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 21st May 2004 12:41
okay i got him to stop when he is in range but i need him to shoot real bullets at me pls help

i used to be indecisive but now ime not so sure
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 22nd May 2004 22:30
i cant make him shoot at me help pls

i used to be indecisive but now ime not so sure
Kain
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: NJ, USA
Posted: 23rd May 2004 15:50
First of all, take a long deep breath and relax. Now, post up what code you have written so we can see exactly how much you have done and how you have done it.

I will take a look at it and help you.

www.ShrikeSoftware.com
DWR
21
Years of Service
User Offline
Joined: 2nd Dec 2003
Location: No-where to be seen
Posted: 24th May 2004 16:31
why dont you try a thing a called reading - the manual and help that is.

IMAGE HAS DISAPPEARED
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 24th May 2004 21:58
huuuuuuuuuuuuuuuugggggggggghhhhhhhhh whoooooooooooooooooooooooo right ive taken a deep breath no this is what ive done



104 is the monster bullet

i used to be indecisive but now ime not so sure
Kain
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: NJ, USA
Posted: 25th May 2004 18:02
Ok from what you posted, the problem is that you are never pointing the bullet object at the player:

point object 104,x#,y#,z#

Do that when the enemy first fires and it should work.



Let me know if that fixes your problem.

www.ShrikeSoftware.com
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 4th Jun 2004 21:04
sorry for the late post ive been busy anyhoow no it doesent work the bullet just stays still it doesent go whith himand it disapears when he gets close enough

i used to be indecisive but now ime not so sure

Login to post a reply

Server time is: 2025-05-23 22:35:08
Your offset time is: 2025-05-23 22:35:08