Hi,
just a thought, when I create a new array:
global PuzzleArray = new Array(64);
and later access it via:
PuzzleArray[ y * 8 + x] = value;
it works.
If I however make this:
PuzzleArray[ToInt( y * 8 + x)] = value;
engine crashes to desktop
---------------------------------------------------------
---------- WME crash report: 04-11-2004, 18:13 ----------
---------------------------------------------------------
wme.exe caused a EXCEPTION_ACCESS_VIOLATION in module dcscomp.dll at 001B:100037C1
EAX=00000001 EBX=00000001 ECX=00040004 EDX=014EAB58 ESI=00E092D0
EDI=00000001 EBP=00000001 ESP=0012F460 EIP=100037C1 FLG=00010206
CS=001B DS=0023 SS=0023 ES=0023 FS=0038 GS=0000
Stack trace:
001B:100037C1 (0x00000000 0x00000000 0x00000000 0x00000000) dcscomp.dll
Not, that it's critical for me. Just I am sometimes trying weird things
Anyways, is there any way how to create multidimensional arrays? I am right now using my matrix access functions into single dimensional array, but it would be nice if somewhere in future I could make multidimensional matrices.