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 / Matrix walking problem

Author
Message
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 8th Oct 2004 02:57
Hi all,
Finally I finish my Collision problem then another one pops up!

I am trying to get this cat to walk over my randomized matrix, here is the code.


I'm pretty sure everything is right but when I load it up my cat model is at Y position 0. I can't figure out why. Anyone got any ideas?

I am currently working on : A Medievil style game
By the way I'm 13 years old!!
PoHa!84
21
Years of Service
User Offline
Joined: 2nd Oct 2003
Location: To your left.
Posted: 8th Oct 2004 04:26
well, going off that little bit that you posted, I'll assume that the height of the matrix at Posx# and Posz# is 0

if you want more help than that, you'll have to post a little bit more code

something
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 9th Oct 2004 19:41


Does this help any more?

I am currently working on : A Medievil style game
By the way I'm 13 years old!!
bibz1st
22
Years of Service
User Offline
Joined: 2nd Jan 2003
Location:
Posted: 10th Oct 2004 01:46
try this...
load object "cat.3ds",9

objx#=250:objz#=250
objy#=GET GROUND HEIGHT(1,objx#,objz#)+OBJECT SIZE Y(9)/2

position object 9,objx#,objy#,objz#

rotate object 9,0,180,0

make object collision box 9,-2.5,-11.5,-2.5,2.5,11.5,2.5,0
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 10th Oct 2004 05:27
Ive got a problem in that whenever i do something like:objx#=250:objz#=250
objy#=GET GROUND HEIGHT(1,objx#,objz#)+OBJECT SIZE Y(9)/2

position object 9,objx#,objy#,objz#

My cat stays stationary. I dont know why!

I am currently working on : A Medievil style game
By the way I'm 13 years old!!

Login to post a reply

Server time is: 2025-05-24 18:55:58
Your offset time is: 2025-05-24 18:55:58