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 / nothing to get the size of a matrix ?

Author
Message
dark puppus
21
Years of Service
User Offline
Joined: 16th Aug 2003
Location:
Posted: 7th Sep 2003 11:43
I want simply get the matrix widht or matrix depth. There is a command?
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 7th Sep 2003 12:06
****store it in a variable at the top of your program


MatrixWidth = 500
MatrixHeight = 500
MatrixDiv = 40
MatrixPosX = (MatrixWidth / 2)
MatrixPosZ = (MatrixHeight / 2)





****then use it when required


make matrix 1,MatrixWidth,MatrixHeight,MatrixDiv
position matrix 1,MatrixPosX,0,MatrixPosZ





**** or print it to the screen for debugging


text 10,10,"Matrix X position = " + STR$(MatrixPosX)

http://www.lunarpixel.com
It's already tomorrow in Australia
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 7th Sep 2003 12:14
i have a usermade plugin by ianm that lets you use
get matrix width
get matrix depth
and loads more to get more control over matrices
get it from his site


dark puppus
21
Years of Service
User Offline
Joined: 16th Aug 2003
Location:
Posted: 7th Sep 2003 13:04
Can i view the source of this plugin ?

I have several matrixes loaded in my game from matedit and i need a function to get their propeties.
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 7th Sep 2003 13:52
its all in a .dll but you can download it from ianm's site, i just can't remember it


ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 7th Sep 2003 13:56
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 8th Sep 2003 08:49
thats pretty cool actually


heres what i found int he read me




width = GET IMAGE WIDTH(image)
height = GET IMAGE HEOGHT(image)

Gets the dimensions of the image specified.

GET MATRIX DEPTH - Get the z dimension of a matrix
GET MATRIX WIDTH - Get the x dimension of a matrix

depth = GET MATRIX DEPTH(matrix)
width = GET MATRIX WIDTH(matrix)

Gets the dimensions of the matrix specified.

GET MATRIX COLUMNS - Get the number of columns in a matrix
GET MATRIX ROWS - Get the number of rows in a matrix

http://www.lunarpixel.com
It's already tomorrow in Australia
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 8th Sep 2003 10:22
Cool, free advertising

I'm glad that you like it

Login to post a reply

Server time is: 2024-09-20 21:26:37
Your offset time is: 2024-09-20 21:26:37