Loop object with start and end frames seems to be broken here
[edit] Or I am missing something. I think this used to work.
sync on : sync rate 60
hide mouse
autocam off
position camera 0,20,-100
load object "Trooper.X", 1
rem Override some properties of the object
set object diffuse 1,rgb(0,0,0)
set object specular 1,0
set object light 1,1
set object ambient 1,1
rem Standard conversion for DM2 object use
xrotate object 1,270
fix object pivot 1
rem Good first view
rotate object 1,0,180+45,0
idle = 1
attack = 2
hurt = 3
walk = 4
run = 5
animation = 0
gosub selec_ani
set object speed 1, 6400
do
if keystate(2) = 1
if animation <> 1
animation = 1
gosub selec_ani
endif
endif
if keystate(3) = 1
if animation <> 2
animation = 2
gosub selec_ani
endif
endif
if keystate(4) = 1
if animation <> 3
animation = 3
gosub selec_ani
endif
endif
if keystate(5) = 1
if animation <> 4
animation = 4
gosub selec_ani
endif
endif
if keystate(6) = 1
if animation <> 5
animation = 5
gosub selec_ani
endif
endif
sync
loop
selec_ani:
select animation
case 1 : loop object 1, 0, 80 : endcase
case 2 : loop object 1, 150, 200 : endcase
case 3 : loop object 1, 201, 250 : endcase
case 4 : loop object 1, 470, 530 : endcase
case 5 : loop object 1, 570, 630 : endcase
case default : loop object 1 : endcase
endselect
return
Please someone tell me I'm wrong.
[edit2] Just read a couple of unanswered posts in the bug forum on this same thing. When something as critical as object animations are broken it seems DBP really is going to hell in a hand basket. Again. I hope I am wrong