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 / matrix problem

Author
Message
XoRiC
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Germany
Posted: 26th Nov 2002 22:48
hi

I'm from Germany and have problems in expressing my problem... hope anybody will understand it!

I have a problem with the matrix...
I created a matrix
make matrix 1,3000,3000,30,30
with small hills
randomize matrix 1,40
on which you can walk.
The player is set to the height of the matrix
y# = get matrix height(1,x#/100,z#/100) +30

now the problem is, that when I walk up a small hill
I am set up onto the hill immediately when I stand in the middle of it. I'm not set a bit higher with every step I make, I am set up in one step! The Y# coordinate changes from 60 to 90 (for example) at once.
I would like to know how I can manage to walk up the hill with more steps than one, so that the Y# coordinate changes more times:
y#=60,y#=61,y#=62.... that there is a transition.

I really hope that anyone has understood what I mean (guess not *g*)
Thanks for tips!!
XoRiC
XoRiC
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Germany
Posted: 26th Nov 2002 22:51
I think its better to post the whole code!



XoRiC
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Germany
Posted: 26th Nov 2002 22:53
I think its better to post my whole code...



donkeygrapes
22
Years of Service
User Offline
Joined: 4th Oct 2002
Location: United Kingdom
Posted: 29th Nov 2002 13:54
Use y#=get ground height() command instead, putting in the actual x and z co-ords, not the grid tile co-ords. This should work properly then.

Mamamia!
PIII 500MHz, 128Mb RAM, Voodoo 3 (!!!)

Login to post a reply

Server time is: 2024-11-23 17:46:59
Your offset time is: 2024-11-23 17:46:59