Hi all,
I have the following problem with the function:
PERFORM CHECKLIST FOR ONSCREEN OBJECTS
It works well for DarkBasic premade objects lik cubes, but, when using .x objects it is failing.
I Post too the code in this message. Objects 1 and 2 are Darkbasic objets. Objects 10001, 3 and 4 are the .x objects.
I have uploaded the needed media.
I have Darkbasic version 6.9.
Any help is appreciated.
EDIT:
It fails with animated .x objects. If the objects are not animated it works well.
Rem -----------------------------------------------------------------------
Rem Se ajusta la resolción y aspectos importantes del juiego
Rem ajuste de la resolución
SET DISPLAY MODE 1024, 768, 32
Rem Se Ubica el inicio de la Sincronización
Sync On
Sync Rate 30
make object cube 1,3
clone object 2,1
Position object 2,0,20,0
Position object 2,0,40,0
Load object "human_collector.x", 10001
clone object 3,10001
clone object 4,10001
Position object 3,-20,20,0
Position object 4,20,20,0
position camera 0,0,-100
do
PERFORM CHECKLIST FOR ONSCREEN OBJECTS 1
set cursor 500,0
print CHECKLIST QUANTITY()
for objPantalla = 1 to CHECKLIST QUANTITY()
numObjPant = (CHECKLIST VALUE A(objPantalla))
set cursor 200+ objPantalla * 60 ,500
print numObjPant
next objPantalla
CONTROL CAMERA USING ARROWKEYS 0, 3, 3
sync
loop