If you have a matrix that has zero in it (the matrix being your map), and you use the omnicalc sprite routine, it messes up, here's some code...
Code: Select all
Real(20,0,8,0,8,8,0,0 "Omnicalc's sprite
If you use a matrix that is half filled wiht ones, and half filled with zeros, and you make sure your picture has the two sprites, this'll show you the error... My zero is a blank sprite, and my one is a block...
The reason I have the Repeat getKey is so that it will draw the tile map, then wait, then draw the sprite, wait, and update the tile map...
Two simple solutions are to use XLIB's sprites, or not use zero in the matrix, which I might do (the latter)...