DarkBASIC Professional Help Wiki
Advertisement


Returns a value of one if the specified camera exists, otherwise returns zero.

Syntax
Return Integer=CAMERA EXIST(Camera Number)
Parameters
Camera Number

Integer
The camera number

Returns

Returns a value of one if the specified camera exists, otherwise returns zero

Example Code
autocam on

make matrix 1,4000,4000,100,100

set matrix height 1,50,50,500

update matrix 1

backdrop on

color backdrop rgb(128,0,0)

while inkey$()<>"x"

set cursor 0,0

print "camera exist ",camera exist(0)

x#=x#+mousemovey() : y#=y#+mousemovex() : rotate camera 0,x#,y#,0

endwhile

backdrop off

delete matrix 1

autocam off

end
Advertisement