I have this editor I`m doing, and for my knowledge of coding, I think I`m doing rather well, just that now and again, I stumble across stupid problems that I cant sort:
ok, I place a box ( 16,16,32 ) on the surface of my matrix - to represent a door in the map, that works fine .I have created ( in paint! )a simple texture set, a 256,256 bitmap, that I have loaded an divided it up, to use as matrix tiles ( that works fine too!)
but theres some of the textures on the bitmap that I want to use for texturing doors, for instance, some doors in the map may need higher level passes to open them - so the bitmap contains textures with DOOR1, DOOR2,DOOR3, so on.
heres a attempted example :
load bitmap "C:\1.bmp",1
set current bitmap 1
get image 1,33,33,96,64
load image "C:\1.bmp",1
rem MAKE BASE MATRIX
make matrix 1,mapx*16,mapz*16,mapx,mapz
position matrix 1,0,0,0
prepare matrix texture 1,1,8,8
set matrix tile 1,1,1,1
update matrix 1
make object box 10,16,16,32
texture object 10,1
now I know theres probably a problem with a conflict of LOAD BITMAP, GET IMAGE then LOAD IMAGE, as they use the same numbers, but I have tried the get image to be 5, not 1, but I cant get it to work
whatever I try either it textures the chosen object black ( no texture ) or the complete screen goes black ?
I know this a long question for a simple answer
but how do I texture an object with part of a bitmap ?