Am i right in thinking that you can’t create multidim arrays in javascript but you can still use them?
Anything I try seems to spit an error like expected eof or ; on the first line
I have even tried copying existing code that is said to work (so I can compare my own code to see how my format is different) and they still spit the same errors.
The line that seems to offend the most is the opening linevar multiDimArray = new int [,,];
ok well I tried this on its own and it works fine but as soon as i add a “for” statement it flips out
go easy on me now its been a while since i did any of this
how about posting your full code? The reason I ask is because currently my brainwave telepathy scanner (the BTS) isn’t currently working as I already fried it answering other posts with the WTF (wave thought finder).
var voxelData = new int[64,64,4];
for (int x = 0; x < 64; ++x)
{
for (int y = 0; y < 64; ++y)
{
var color = colors[x + y * 64];
for (int z = 0; z < 4; ++z)
{
voxelData[x, y, z] = (int)(color[z] * 255);
}
}
}
I get the feeling i’m making a huge noob mistake here
the error I get here is “expecting ;, found ‘x’.”
I see not how that is relevant or of any help to me
pre incrementing will return the numbers 0 to 63 (I believe). Since the image I want loaded is 64 pixels wide then post incrementing would return 0-64 which would return a size of 65 or am I missing something. Still need to get it all to js though