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 / Set matrix height

Author
Message
doffer
21
Years of Service
User Offline
Joined: 21st Nov 2003
Location:
Posted: 1st May 2005 18:47
Hey.
I just saw someone used the "set matrix height" to control the matrix.
Could someone quick tell me what the numbers are used for?

set matrix height 1,0,3,950

The 1 is for the matrix number, and I think that 950 is the height, but what about the others.

http://forum.thegamecreators.com/?m=forum_view&t=53278&b=10
(look at the code in the first post)

Denmark Denmark Denmark.
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 1st May 2005 19:03
Uhh... use the help file?

Then again, you could be using a trial version, or a cracked trial version (shame on you!!), so I'll copy it out of my DBC v1.13 help files.

Quote: "
SET MATRIX HEIGHT

This command will set the individual height of a point within the matrix. To raise a whole grid square you would need to raise four points, one from each corner of the square. If you set points x=0 z=0, x=0 z=1, x=1 z=0 and x=1 z=1 to a value of 10, you would raise the near left square upwards by ten units. The matrix number and tile reference values should be integer values. The height value should be a real number.


SYNTAX

SET MATRIX HEIGHT Matrix Number, X, Z, Height
"


Enjoy.

How's my typing? Phone 0800-GO-TO-HELL
CaseyK
21
Years of Service
User Offline
Joined: 27th Jun 2003
Location:
Posted: 2nd May 2005 01:00
By X and Z he means the Tiles, not just any X or Z position on the matrix. it's a cute little command, it's works great with the data structure...No one seems to know this so I think I will make a code snippet for all of you.

And the sun sets on our oblivion.
doffer
21
Years of Service
User Offline
Joined: 21st Nov 2003
Location:
Posted: 2nd May 2005 01:31
hehe... thanks.
I have a legal version of DBC.

Sorry I didn't think of that.
Stupid me

Denmark Denmark Denmark.
CaseyK
21
Years of Service
User Offline
Joined: 27th Jun 2003
Location:
Posted: 2nd May 2005 07:43
Here we go a little Code snippit to demonstrate a semi-efficeint way to use matrixes. It's also in the code section of this website. Enjoy. P.S. Your not stupid as long as you are trying to learn. I want to move to denmark social democracy.

And the sun sets on our oblivion.
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 7th May 2005 04:28
Error, code invalid...

Please post that code again...
Link102
20
Years of Service
User Offline
Joined: 1st Dec 2004
Location: On your head, weeeeee!
Posted: 7th May 2005 07:18
doffer - don't forget the update matrix command

please reply

Login to post a reply

Server time is: 2025-05-23 00:16:41
Your offset time is: 2025-05-23 00:16:41