Here is some example code:
set display mode 1280,768,32
make camera 2
set current camera 2
set camera aspect 2, 1
set camera to image 2, 3000, 150, 150,2
color backdrop 2, 0
make object cube 1, 1
load image "CubeUV2.bmp",2
texture object 1,2
position object 1,0,0,0
set object mask 1, %0100
`backdrop off 0
set current camera 0
make object cube 2,5
do
a2DrawImage 3000, 0, 0, 0, 0, 0, 1, 0, 0xFFFFFFFF
rotate object 1,0,y,0
y = y +1
sync
loop
The example is working fine, but for some reason when i add it to my project it's not working anymore.If i use
set camera to image 2, 3000, 150, 150,2 it's not showing anything if i use
set camera to image 2, 3000, 150, 150 it shows only black square where it should be the image from the camera.Ican't find anything special that can cause this.So frustrated, i hate when this happens, something that should and could but do not work for no apparent reason...
Coding is My Kung Fu!
And My Kung Fu is better than Yours!