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 / object detection/jumping question

Author
Message
Douglass
21
Years of Service
User Offline
Joined: 28th Aug 2003
Location:
Posted: 27th Dec 2003 03:04
how could i detect if an object is diretly below an object so i could "jump" off of something?

basically i need a command that checks if an object is in a spot.

check out my site [href]www.dougsworld.tk[/href]
you think your site is bad....
Kwiki Mart
21
Years of Service
User Offline
Joined: 9th Dec 2003
Location: PA
Posted: 27th Dec 2003 03:21
2D or 3D?

On target, On time!
Douglass
21
Years of Service
User Offline
Joined: 28th Aug 2003
Location:
Posted: 27th Dec 2003 03:37
3d- i said objects not sprite

check out my site [href]www.dougsworld.tk[/href]
you think your site is bad....
JoelJ
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 27th Dec 2003 04:12
grr

if object1x = object2x and object1z = object2z then objects are over/under/ontop of each other

Douglass
21
Years of Service
User Offline
Joined: 28th Aug 2003
Location:
Posted: 27th Dec 2003 05:04
yes but what if i dont know what object im checking for?

check out my site [href]www.dougsworld.tk[/href]
you think your site is bad....
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 27th Dec 2003 05:15 Edited at: 27th Dec 2003 05:17
Try This:



Hope I Helped...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
Douglass
21
Years of Service
User Offline
Joined: 28th Aug 2003
Location:
Posted: 27th Dec 2003 05:37
thanks but the code didnt work heres how its implemented:


again i thank u for ur help.

check out my site [href]www.dougsworld.tk[/href]
you think your site is bad....
Douglass
21
Years of Service
User Offline
Joined: 28th Aug 2003
Location:
Posted: 27th Dec 2003 05:37
the jumping part is at the bottom.

check out my site [href]www.dougsworld.tk[/href]
you think your site is bad....
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 27th Dec 2003 05:49
Um... I'm not too familiar with some of the commands you have there ( either is DB, apparently ). Ie, "Move Object Down", and "automatic camera collision" and "automatic object collision" so I don't know exactly what you are tryign to do.

But, one thing i did notice is that in the function call, you haven't changed the object number to 10 ( which is your character number, i am presuming ).

Other than that, unless I know what the other commands are, I can't really help you, sorry.

Hope I Helped...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
Douglass
21
Years of Service
User Offline
Joined: 28th Aug 2003
Location:
Posted: 27th Dec 2003 05:57
oh my bad, im using pro but i posted on the regular boards cause the pro boards have been totally dead lately. i guess ill actually try to bother figureing stuff out myself theanks again.

check out my site [href]www.dougsworld.tk[/href]
you think your site is bad....
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 27th Dec 2003 05:59
Ah, ok... no, it's cool, I've got Pro too...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
Douglass
21
Years of Service
User Offline
Joined: 28th Aug 2003
Location:
Posted: 27th Dec 2003 06:00
seriously? well...

check out my site [href]www.dougsworld.tk[/href]
you think your site is bad....
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 27th Dec 2003 06:37 Edited at: 27th Dec 2003 06:38
The code runs fine now...

But, Alas, I cannot get the jumping to work. I modified the function down to this:



And used this to call it:



But it just won't work...

Sorry.

Mabey someone else could expand upon what I have?...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
Douglass
21
Years of Service
User Offline
Joined: 28th Aug 2003
Location:
Posted: 27th Dec 2003 20:02
well thanks again...peoples help....

check out my site [href]www.dougsworld.tk[/href]
you think your site is bad....

Login to post a reply

Server time is: 2025-05-22 09:13:27
Your offset time is: 2025-05-22 09:13:27