Could anyone supply me with the syntax for the array.swap command when handling multidimensional arrays? I've searched the help but the only reference to it I can find is
Quote: "Misc
There are some additional array commands that don't fit in the above categories, they are .swap(index1,index2) to swap two elements in an array (including types and multidimenional arrays) and .reverse() to reverse the elements in an array."
Using a 2-dimensional array of a type, I'm trying to swap two elements, e.g.
Type tSpriteTile
iX As Integer
iY As Integer
iTween As Integer
EndType
Dim giSpriteTiles[4,4] As tSpriteTile
//Assign some values
...
...
//Swap array entry [1,2] with [2,3]
giSpriteTiles.swap(?,?)
"It is said that your life flashes before your eyes just before you die. That is true, it's called Life.”