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

Author
Message
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 23rd Mar 2004 21:34 Edited at: 23rd Mar 2004 23:26
ime trying math collision for my fps but it dont get it can somone give me some code so when my bullet object 4 hits my enemy 26 a blood mark comes up pls i cant get it working i need to shoot my enemy and a blood mark comes up

*=========**=================*
*.-steve-.**.-slipknot rule-.*
*=========**=================*
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 24th Mar 2004 20:16
pls can somone give me some code just to check if my objects are close to each other i can write the rest i just need that bit pls

*=========**=================*
*.-steve-.**.-slipknot rule-.*
*=========**=================*
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 24th Mar 2004 23:03
Give my code snippet a look. Shows how to use intersect object and calculate the point of impact on an object. Geared towards a fps game.

http://darkbasicpro.thegamecreators.com/?m=codebase_view&i=43f5fd117615decde62c7a7749aa070d

"eureka" - Archimedes
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 29th Mar 2004 22:08
k thanks but i really sorry but i dont get so can somone look at my code and tell me why it aint working pls as quick as can pls

*=========**=================*
*.-steve-.**.-slipknot rule-.*
*=========**=================*
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 29th Mar 2004 22:13
k changed my code to this have a look tell me why it dont work pls

*=========**=================*
*.-steve-.**.-slipknot rule-.*
*=========**=================*
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 30th Mar 2004 02:59
I notice you load all of your .dds files separately. If I remember correctly when loading .X files DB automatically textures them baesd on the data saved in the object's file. You can get rid of all your image loading and texturing commands if all your objects are .x.

Crazy Donut Productions, Current Project: KillZone
Web Site Button Does Not Work, Visit Here: http://www.geocities.com/crazydonutproductions/index.html
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 30th Mar 2004 23:10
thanks but it dident work cant u see anything wrong

*=========**=================*
*.-steve-.**.-slipknot rule-.*
*=========**=================*
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 30th Mar 2004 23:28
please oooohhhhh this is killing me why why why oh sorry so can somone please help me

*=========**=================*
*.-steve-.**.-slipknot rule-.*
*=========**=================*
jrowe
22
Years of Service
User Offline
Joined: 12th Oct 2002
Location: Here
Posted: 31st Mar 2004 11:55
That code won't work in DB Classic as it uses the intersect object command.


For Fathers and Sons who enjoy wholy spirits.
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 31st Mar 2004 19:57
does it i dident think it did but okay can u help me fix it if ive used it pls

*=========**=================*
*.-steve-.**.-slipknot rule-.*
*=========**=================*
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 1st Apr 2004 01:19
Umm, how about you actually read the code before you post it. You should quite obviously know it uses intersect object. Ppl aren't going to do the work for you. I gave you a good example, but you need to take the effort to learn it.

"eureka" - Archimedes
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 1st Apr 2004 21:59
k i will try and learn ur code but i dont get it but in the mean time can u tell me why this dont work pls

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

Login to post a reply

Server time is: 2025-05-23 03:21:44
Your offset time is: 2025-05-23 03:21:44