do you have a "create matrix 1,100,100,20,20" or something like that in your code somewhere near the start?, you have to create one before you texture it, and it has to be the right size in tiles or you will get that error, you also need to create a matrix texture, then make sure you don`t use more texture tiles than you made when you made the texture etc, computers are realy dumb...just cos you mentioned a matrix doesn`t mean the `puter will think to make one, you have to specificaly tell it to make one first, I think maybe you should read some more of the tutorial, you may have missed something (never seen it myself..so just guessing here), basic rules tho
make a matrix
make a texture of x tiles
make sure the x,y and tile numbers are within bounds
apply textures to the different tiles on the matrix
update the matrix so you can see the changes you have made to it
and it should work just fine.
Mentor.
PC1: P4 hyperthreading 3ghz, 1gig mem, 2x160gig hd`s, Nvidia FX5900 gfx, 6 way surround sound, PC2: AMD 1.2ghz, 512mb ram, FX5200 ultra gfx, stereo 16 bit soundblaster, ups.