Simple Array indexing question.

Blitz3D Forums/Blitz3D Programming/Simple Array indexing question.

If I wanted to index a two dimensional array using an a single integer(index) value instead of and X and Y value, what math would I have to do to derive the X, and Y, from the Index. Basically the same way that frames are reference from the loadanimimage command. The images are stacked in an array in the image file, but are refenced using a single frame number.