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 / water / walkable matrix

Author
Message
RisTar
21
Years of Service
User Offline
Joined: 25th Jan 2003
Location:
Posted: 15th May 2003 19:15
well here we go again ! i got a matrix the ive created in magicworld , the size of it is 4304x3244 . so i want to create water , but i dont know what is the right size i need for the water matrix ?? , and the seconed thing , some one can post my a code to make the magic world ground walkable , and explain me how to do it !
thanks !!!
sicjoshsic
21
Years of Service
User Offline
Joined: 8th May 2003
Location: United Kingdom
Posted: 15th May 2003 19:36
it depends where the water is going to be. you need to make it about 100 pixels wider and higher than the area that is going to be 'filled' with water. alternatively, you could make it the same size as the main matrix, that way wherever the matrix went below a certain height (the height of the water matrix) there would automatically be water there. the problem with that is that your program will be slower than if you made matrices the right size for where they need to go

RisTar
21
Years of Service
User Offline
Joined: 25th Jan 2003
Location:
Posted: 15th May 2003 19:43
i want that the water will be much more wider then the matrix , i just dont know how to tell the size i need because when i make matrix i dont have higth and width like the original matrix , i got width and depth , and x something , and z too , i dont know what this stuff means !

sicjoshsic
21
Years of Service
User Offline
Joined: 8th May 2003
Location: United Kingdom
Posted: 15th May 2003 19:54
height=z
width=x
depth=y
does that help?

ok, imagine this.
if you are looking straight forwards, and you take a step forward, you are advancing z
if you step back, you are decreasing z
if you step to the left, you increase x
to the right, decrease x
if you climb up a ladder, you increase y
down the ladder you decrease y

im not very good at explanations, but i hope you understand what i am trying to say

RisTar
21
Years of Service
User Offline
Joined: 25th Jan 2003
Location:
Posted: 15th May 2003 20:06
look at this code

im gettin an error "matrix already exist"

sicjoshsic
21
Years of Service
User Offline
Joined: 8th May 2003
Location: United Kingdom
Posted: 15th May 2003 20:15
try this


sicjoshsic
21
Years of Service
User Offline
Joined: 8th May 2003
Location: United Kingdom
Posted: 15th May 2003 20:23
by the way, if that doesn't help, don't give up, im new to db myself

RisTar
21
Years of Service
User Offline
Joined: 25th Jan 2003
Location:
Posted: 15th May 2003 20:47
ya its workin ' all i got2do now is to play a little with the positions .

David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 17th May 2003 13:20
If you qant top make the ground walkable, then put this after you load the matrix:

position matrix 1,0,0,0

then you can use get ground height() to work out the height your character should be at.

You are the th person to view this signature.
Programmers don't die, they just Gosub without return....

Login to post a reply

Server time is: 2024-09-20 07:44:19
Your offset time is: 2024-09-20 07:44:19