Compiler: DBPro 1.061
I am having some problems texturing a "plain". My image is a PNG with a Yellow 0 (64x64). Everytime I texture the object it just shows up like a brownish fat 1.
Setup()
CENTER TEXT SCREEN WIDTH()/2, SCREEN HEIGHT()/2, "Loading Images"
FOR x = 0 TO 5
SYNC
NEXT x
CLS
`LoadImages()
`DEBUG
LOAD IMAGE "tileset/numbers/0.png", 1
MAKE OBJECT PLAIN 1, 64, 64
POSITION OBJECT 1, 0, 0, 500
TEXTURE OBJECT 1, 1
`PASTE IMAGE 1, (SCREEN WIDTH()/2) - 32, (SCREEN HEIGHT()/2) - 32, 1
DO
SYNC
LOOP
`END DEBUG
END
FUNCTION Setup()
BACKDROP ON
COLOR BACKDROP RGB(0,0,0)
SET AMBIENT LIGHT 100
COLOR AMBIENT LIGHT RGB(255, 255, 255)
SYNC ON
SYNC RATE 60
AUTOCAM OFF
`White Text & Black Background
INK RGB(255,255,255), RGB(0,0,0)
ENDFUNCTION
http://www.gamestack.org