I tried to load the second version of Hercules using the following code:
SetErrorMode(2)
SetWindowTitle("test")
SetWindowSize(1024, 768, 0)
SetVirtualResolution(1024, 768)
SetOrientationAllowed(1, 1, 1, 1)
SetSyncRate(30, 0)
UseNewDefaultFonts(1)
herc as integer
i as integer
anim_count as integer
name as string[]
duration as float
herc = LoadObjectWithChildren("herc2.dae")
anim_count = GetObjectNumAnimations(herc)
name.length = anim_count - 1
for i = 0 to name.length
name[i] = GetObjectAnimationName(herc, i)
next i
duration = GetObjectAnimationDuration(herc, name[1])
duration = GetObjectAnimationDuration(herc, name[0])
do
for i = 0 to name.length
Print(str(i) + ":" + name[i])
next i
Sync()
loop
It is strange to me that although the duration of the SECOND animation is valid, the AppGameKit displays a message when it tries to return the duration of the FIRST animation.