Im getting confused with camera exist command. My program gives me opposite of what I expect. When I expect it to not exist, it tells me that it exists. Please enlighten me. hehehe
set window on
make camera 2
make camera 15
do
cls
text 0,0,str$(timer())
for i=1 to 20
if (camera exist(i)==1)
text 0,20*i,"Main Camera is Camera " +Str$(i)
endif
next i
loop
Output shows that uncreated cameras exist..It showed that created cameras dont exist as shown by camera exist().
set window on
make camera 2
make camera 15
if camera exist(2)==1 then make camera 2
make object plain 1, 10,10
position object 1,0,0,0
position camera 0,0,10
point camera 0,0,0
do
rem cls
text 0,0,str$(timer())
for i=1 to 20
if (camera exist(i)==1)
text 0,20*i,"Main Camera is Camera " +Str$(i)
endif
next i
loop
It does not result to a runtime error even if camera is made again..Instead it results to error if changed to camera exist(2)==0
When a person has nothing but a dream, can he dare to dream.