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.

Newcomers DBPro Corner / object hit...help please!

Author
Message
Bishop
21
Years of Service
User Offline
Joined: 18th Dec 2002
Location: In my favorite chair...
Posted: 11th Oct 2003 03:53
ok.....i am using cart shop and it dosn't have a collision box saver, so will the object hit command work? i tried it but maybe i have done something wrong....thanx in advance!

Bishop

"When you were born, you cried and the world rejoiced. Live so when you die, the world cries and you rejoice."
y!Ck
21
Years of Service
User Offline
Joined: 2nd Jul 2003
Location: Europe - Netherland
Posted: 11th Oct 2003 07:18
Have you made a object collision box.
Thats the same mistake i made when i couldn't do anything yet

if you haven't then plant this in your code

and make sure you plant this before the loop or else it will only cost more cpu usage


sx=object size x(your object)/2
sy=object size y(your object)/2
sz=object size z(your object)/2

make object collision box your object,-sx,-sy,-sz,sx,sy,sz
Bishop
21
Years of Service
User Offline
Joined: 18th Dec 2002
Location: In my favorite chair...
Posted: 12th Oct 2003 00:16
will that work with an erregualar object such as a cshop map? i got object all over the place...thanks

Bishop

"When you were born, you cried and the world rejoiced. Live so when you die, the world cries and you rejoice."
y!Ck
21
Years of Service
User Offline
Joined: 2nd Jul 2003
Location: Europe - Netherland
Posted: 12th Oct 2003 03:34
OFcourse it will work the only problem is that you will have a colision box and not a model so it wil not be exact precise

Why live life if you die anyway.
y!Ck
21
Years of Service
User Offline
Joined: 2nd Jul 2003
Location: Europe - Netherland
Posted: 12th Oct 2003 03:44
if darkbasic can load it it can also do anything with it it wants like checking what size it is and everything so this little idea must work only you will have a box collision wich i think is not that nice because it will be more like a cube sliding around the object but it will work cuz it works with any model that can be into darkbasic, and i don't see why not because darkbasic uses its own collision not one from the program that build the object

so i hope it will work or else you can shout around the entire forum i'm stupid

Why live life if you die anyway.
Bishop
21
Years of Service
User Offline
Joined: 18th Dec 2002
Location: In my favorite chair...
Posted: 12th Oct 2003 05:44
thanx alot

"When you were born, you cried and the world rejoiced. Live so when you die, the world cries and you rejoice."
John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 12th Oct 2003 07:04
Check out Intersect Object as well.

RPGamer

Current Project: Eternal Destiny
We need a texture artist!
If your interested email me - Johnrocs@aol.com

Login to post a reply

Server time is: 2024-11-25 13:18:56
Your offset time is: 2024-11-25 13:18:56