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 / fps collision

Author
Message
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 3rd Feb 2004 23:15
i loaded iraq.x so i could shoot him whith my ak-47 but when i shoot him it goes through him could somone tell me how to make him die not just dissapear i mean die as in he falls down dead and you see it

*=========**=================*
*.-steve-.**.-slipknot rule-.*
*=========**=================*
Slayer
21
Years of Service
User Offline
Joined: 15th Nov 2003
Location: CA
Posted: 3rd Feb 2004 23:21 Edited at: 3rd Feb 2004 23:22
Man you are ONE dum person. Things dont happen in 3d as it dose in the real world. You have to animate, make a engine to controll
the players animation. How long have you ben programing?

I dont know how to spell
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 3rd Feb 2004 23:28
not long a month max

*=========**=================*
*.-steve-.**.-slipknot rule-.*
*=========**=================*
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 3rd Feb 2004 23:31
you know when you add walking animation to people i thought you could do it like that exept its dying animation

*=========**=================*
*.-steve-.**.-slipknot rule-.*
*=========**=================*
Slayer
21
Years of Service
User Offline
Joined: 15th Nov 2003
Location: CA
Posted: 4th Feb 2004 00:04 Edited at: 4th Feb 2004 00:04
For one dont say people say model. Your thinking to fast.
your not going to just make a game right now. learn some stuff then make a game. Ive ben programing for a year and 1/2 and I never made a game.

Were did you hear about darkbasicpro??

Quote: "*.-steve-.**.-slipknot rule-.*"

Your trying to tell people that your into slipknot.
And your never going to be a geek. Well I got some news for you.
I listen to slipknot, slayer, ect... and I thought I was going to be
some new kind of geek. No just get rid of that, just start being a geek now.

I dont know how to spell
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 4th Feb 2004 15:39
what are u talkin bout you dont make sense

*=========**=================*
*.-steve-.**.-slipknot rule-.*
*=========**=================*
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 4th Feb 2004 16:48
Hehe, SlipKnot never KoRn forever!!!

I dunno if I'm a geek or not - If I am a geek, then I'm a pretty cool one! .

Firstly, you have to detect if a bullet has hit your character, then you have to set the death animation in motion.

For the bullet collision, you could take your character model, and work out the distance between the bullet and the character - I usually do this for 5 or 6 key limbs on the character (like each arm, each thigh, each leg, the torso, and the head). If you want to do this then you have a shopping list to fill up first, namely:

Make a sketch of your character and number the limbs according to the limb numbers in DB. The examples supplied with DB should do that for you, you'll just need to mess around. There is an example supplied with DB that shows and hides certain limbs, go looking for the LIMB POSITION and the other limb commands.

You will need a 3D distance function, so you can check the distance between the limb and the bullet - collision distances are downto you and a lot of experimenting.

Once you know what limbs you want to check, and you have a distance function you'll be able to detect if a limb has been shot - you could even hide limbs to signify decapitations etc ala Soldier of Fortune. The animation starting problem is non-existant compared to that of detecting the bullet collision in the first place, so get your collision working first.

I agree with Slayer though, I reckon you need to cool your jets and spend some time playing with the examples, it's the best way to learn.


Van-B


The nature of Monkey was irrepressible!.
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 6th Feb 2004 23:11
thanks van b your a lot of help and very funny but i think if you think your not a geek then your not if others think your a geek it dont matter (well not to me)

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

Login to post a reply

Server time is: 2025-05-22 11:18:09
Your offset time is: 2025-05-22 11:18:09