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 / Collision Stuff- Where to start with DBP?

Author
Message
CKy
21
Years of Service
User Offline
Joined: 26th Jan 2003
Location:
Posted: 18th Feb 2004 02:41
Hey all. Im using DBP and i know how to make matrixes and stuff. But i cant get the collision stuff to work? i tryed putting global collision on etc. but ...
what happens after something collides? like how to you get it to stop it from moving into the object... or mainly, colliding with a matrix. i cant get my characters to walk on the different height tiles of the matrix.... like up hills, along straights etc. can someone please help? even just a small snippet?
thx
comando 300
21
Years of Service
User Offline
Joined: 23rd Nov 2003
Location:
Posted: 18th Feb 2004 03:03 Edited at: 18th Feb 2004 03:15
I don't know too much but I think if u do something like this

speed=5
make object sphere 1,3 : position object 1,250,0,0
make object cube 2,20,30,40 : position object 2,250,0,250
set autocam off : position camera 250,0,0
do
if upkey()=1 then move object 1,speed
if downkey()=1 then move object 1,speed
if rightkey()=1 then turn object right 1,6
if leftkey()=1 then turn object left 1,6
set object collision to boxes 2
set object collision to sphere 1
if object collision(1,2)>0 then speed=0
sync
loop

I dunno if it works, but I hope it work!
edit:
it doesn't works

CURRENT PROJECT: RETRO PAC-MAN
CKy
21
Years of Service
User Offline
Joined: 26th Jan 2003
Location:
Posted: 18th Feb 2004 03:27
THATS IT!!! stop the speed of the object?!!!? why the heck didnt i think of that beforE lol. thx man.


but i still dunno how to make an object (like character) collide with a matrix (NOT BSP!)

thx commando
comando 300
21
Years of Service
User Offline
Joined: 23rd Nov 2003
Location:
Posted: 18th Feb 2004 03:31
but wait cuz the object will stop forever
Quote: "but i still dunno how to make an object (like character) collide with a matrix (NOT BSP!)"

With the edges?

CURRENT PROJECT: RETRO PAC-MAN
CKy
21
Years of Service
User Offline
Joined: 26th Jan 2003
Location:
Posted: 18th Feb 2004 03:35
heh what do u mean by edges? i just want the char to go up and down hills of the matrix etc.
comando 300
21
Years of Service
User Offline
Joined: 23rd Nov 2003
Location:
Posted: 18th Feb 2004 03:48
I don't know how to use. I only know about the get matrix height(matrix number,x,z) command.It better you to do the Binary Moon tutorial.

CURRENT PROJECT: RETRO PAC-MAN
CKy
21
Years of Service
User Offline
Joined: 26th Jan 2003
Location:
Posted: 18th Feb 2004 04:00
ah ok
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 18th Feb 2004 04:57
Hi CKy,
If you're liking the matrix terrain system keep using GROUND HEIGHT for colliding with that, but if you can't work out the other collision stuff check out http://www.nuclearglory.com where you can get a nice collision dll that does things easy with perfection.

Crazy Donut Productions
Current Project: KillZone
comando 300
21
Years of Service
User Offline
Joined: 23rd Nov 2003
Location:
Posted: 18th Feb 2004 19:36
I can use those DLL collision for 2D games?

CURRENT PROJECT: RETRO PAC-MAN
nuclear glory
21
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 19th Feb 2004 00:36 Edited at: 19th Feb 2004 00:36
It's designed for 3D games.

Lead Programmer/Director
Powerful Collision DLL for DBPro and DBC: http://www.nuclearglory.com
comando 300
21
Years of Service
User Offline
Joined: 23rd Nov 2003
Location:
Posted: 19th Feb 2004 00:52
ok!

CURRENT PROJECT: RETRO PAC-MAN
CKy
21
Years of Service
User Offline
Joined: 26th Jan 2003
Location:
Posted: 23rd Feb 2004 08:37
wow. you guys have been alot of help thx. i was wonderin if i should just use the get matrix height() command... but i thought that only got the '-' height of the terrain, not the '/' slope? (if u see what i mean)
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 23rd Feb 2004 15:59
You need at least 2 coordinates to calculate a slope. So GET GROUND HEIGHT twice and calculate the angle, and hence the height.

Can you also clarify your requirements? You are talking about 2D and also Matrices - which are you working with?

BatVink (formerly StevieVee)
http://facepaint.me.uk/catalog/default.php
CKy
21
Years of Service
User Offline
Joined: 26th Jan 2003
Location:
Posted: 24th Feb 2004 00:38
sorry lol. (matrices = the plural of matrix?). i am working with a matrix, and i tryed the get matrix height() command... LOL!!!!! thats the jerkiest damn thing i ever seen!!! cause like i guessed, it doesnt get the slope, just the height. so my char was jumping from 5 to 10 to 50 to 32 to 2.... that sux.
Batvink... are u telling me i need to use trigonometry
could u give me an example please?

Login to post a reply

Server time is: 2024-11-26 05:38:34
Your offset time is: 2024-11-26 05:38:34