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 / theres got to be a better way

Author
Message
lava man
17
Years of Service
User Offline
Joined: 19th Jan 2007
Location: west allis wisconsin
Posted: 21st Feb 2007 18:56 Edited at: 21st Feb 2007 18:57
is there any other way to write collision for a fps game
othere then this



any ideas?

I use dbp and xna
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 21st Feb 2007 19:13
Look at RUCCUS's post stickied in Newcomer's Corner. Specifically look at his function that he made using Sparky's DLL. It's easy to implement and works wonders

TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 21st Feb 2007 22:17
If you are asking from the perspective that using your snippet tests between two specific objects and you would to have to repeat that code for every object, then there is an alternative way:



By specifying a zero instead of the number of the object to detect collision with, it changes the way function works. Instead of returning a 0 or 1 it returns the object number of whatever object 1 bumps into.

If you store the returned value in a variable, you only need to do one collision test and use the variable in a Case..Select to decide what to do.

TDK_Man

lava man
17
Years of Service
User Offline
Joined: 19th Jan 2007
Location: west allis wisconsin
Posted: 22nd Feb 2007 02:40
okay thanks i have been using my code like this


I use dbp and xna
lava man
17
Years of Service
User Offline
Joined: 19th Jan 2007
Location: west allis wisconsin
Posted: 22nd Feb 2007 02:51
oh and while im here is there any way you could help
me with making a ai for my fps game

basicly i want to make a tombraider style game
with zombie characters and stuff like that
and basicly i need them to chase you
when they see you or if you shoot at them
they will hide or chase you.
because ive tried to follow the tutorailes
the closest thing ive found is that zombie ai that was really
helpfull but i cant find how to get them to chase you and
and attack you

any ideas.

I use dbp and xna
lava man
17
Years of Service
User Offline
Joined: 19th Jan 2007
Location: west allis wisconsin
Posted: 22nd Feb 2007 18:06
anybody?

I use dbp and xna
Silvester
18
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 22nd Feb 2007 18:29
Try AF_Functions,there is a simple AI function wich is quite usefull if i say so myself.

It requires Goga 's free DBP plugin 2 though.(The Function is: AF_SimpleAI,it lets the object follow the player aslong as he is in a certain distance.)

lava man
17
Years of Service
User Offline
Joined: 19th Jan 2007
Location: west allis wisconsin
Posted: 22nd Feb 2007 20:39
i cant download Goga 's free DBP plugin 2
when i click on it it gives me
error 504 gatway timeout.

I use dbp and xna
Silvester
18
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 22nd Feb 2007 20:40 Edited at: 22nd Feb 2007 20:45
Ow.

strange.Ill see if i can download it.

edit,his site is down to me.

Ill zip it up.couldnt find the highlighting .in though.

The .dll must be in compiler\plugins-user

the other one is a help file.

Attachments

Login to view attachments
lava man
17
Years of Service
User Offline
Joined: 19th Jan 2007
Location: west allis wisconsin
Posted: 22nd Feb 2007 21:07
thanks.

I use dbp and xna
Silvester
18
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 22nd Feb 2007 21:15
no problem.

lava man
17
Years of Service
User Offline
Joined: 19th Jan 2007
Location: west allis wisconsin
Posted: 24th Feb 2007 22:56
is there any one command or function to set collision for
all objects in a program?

I use dbp and xna
Silvester
18
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 25th Feb 2007 17:51
you have to do collision for everything on its own.

not like ALL COLLISIONS ON IN SOFTWARE TO SHOW NOOBINESS

you have to set parameters for all objects.

lava man
17
Years of Service
User Offline
Joined: 19th Jan 2007
Location: west allis wisconsin
Posted: 25th Feb 2007 18:28
okay

I use dbp and xna
Silvester
18
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 25th Feb 2007 19:24
I have some problems with making collision too still,but well.i figure something out anyway.i have a system on DBP native collision and it works with my movement system.

It isn't hard to create a simple collision system.

TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 26th Feb 2007 00:23
Quote: "is there any one command or function to set collision for
all objects in a program?"


SET GLOBAL COLLISION ON

TDK_Man

Antidote
19
Years of Service
User Offline
Joined: 18th Mar 2005
Location: San Francisco, CA
Posted: 26th Feb 2007 00:29
Quote: "
By specifying a zero instead of the number of the object to detect collision with, it changes the way function works. Instead of returning a 0 or 1 it returns the object number of whatever object 1 bumps into."


RU SRYUS???!11/?!//?@!1!

That's interesting, I've always just done collision with groups like this.




TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 26th Feb 2007 00:40 Edited at: 26th Feb 2007 00:40
Quote: "RU SRYUS???"


Erm...

Answer 1: No - I'm not SRYUS, I'm TDK_Man!

Answer 2: Yes totally serious. Didn't you know that?

TDK_Man

Login to post a reply

Server time is: 2024-11-26 22:12:38
Your offset time is: 2024-11-26 22:12:38