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 / collissions

Author
Message
super_tornado_
21
Years of Service
User Offline
Joined: 18th Dec 2002
Location:
Posted: 18th Dec 2002 23:32
I have made an ok program, in it i have put buildings with collissions When you touch this object you hear a noise. I have also put another building in, which you have to find(3d object from media)When you hit this building i want it to say well done or something like that but it won't regognise that the collission is different to the other objects. How do i get it to regognise this collission?
I have got DarkBasics not Pro
John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 19th Dec 2002 03:43
You should check if the position of the object is inside a box area, by using x and z positions, with < >.

boxx=object position x()
boxz=object position z()

if boxx < x AND > x AND boxz > x AND < x then play sound x

Current - RPG: Eternal Destiny : Help Wanted!
Upcoming- MMOFPS- Paintball Game: HELP WANTED!
Http://halbrosproductions.netfirms.com
super_tornado_
21
Years of Service
User Offline
Joined: 18th Dec 2002
Location:
Posted: 19th Dec 2002 18:57
Thankyou but that doesn't work because the building that you have to find is placed randomly.

John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 20th Dec 2002 02:00
Then find the objects coordinates, using object x and stuff, then for the other side, just add the length of the building!

RPGamer

x2= x + length of building

Current - RPG: Eternal Destiny : Help Wanted!
Upcoming- MMOFPS- Paintball Game: HELP WANTED!
Http://halbrosproductions.netfirms.com

Login to post a reply

Server time is: 2024-11-23 17:53:22
Your offset time is: 2024-11-23 17:53:22