I was checking to make sure that the animations were loaded and that they were playing. What I don't understand is how what im doing here can make any difference on the animations:
makezombies:
rem zombie media
load object "media/mobzombie1/mobzombie1.dbo",8500
load image "media/mobzombie1/mobzombie1_D.dds",8500
texture object 8500,8500
rotate object 8500,180,0,180
fix object pivot 8500
rem loop object 8500,319,354
rem set object speed 8500,35
position object 8500,10000,-100,10000
load object "media/mobzombie2/mobzombie2.dbo",8501
load image "media/mobzombie2/mobzombie2_D.dds",8501
texture object 8501,8501
rotate object 8501,180,0,180
fix object pivot 8501
rem loop object 8500,319,354
rem set object speed 8500,35
position object 8501,10000,-100,10000
load object "media/mobzombie3/mobzombie3.dbo",8502
load image "media/mobzombie3/mobzombie3_D.dds",8502
texture object 8502,8502
rotate object 8502,180,0,180
fix object pivot 8502
rem loop object 8500,319,354
rem set object speed 8500,35
position object 8502,10000,-100,10000
load object "media/mobzombie4/mobzombie4.dbo",8503
load image "media/mobzombie4/mobzombie4_D.dds",8503
texture object 8503,8503
rotate object 8503,180,0,180
fix object pivot 8503
rem loop object 8500,319,354
rem set object speed 8500,35
position object 8503,10000,-100,10000
load object "media/mobzombie5/mobzombie5.dbo",8504
load image "media/mobzombie5/mobzombie5_D.dds",8504
texture object 8504,8504
rotate object 8504,180,0,180
fix object pivot 8504
rem loop object 8500,319,354
rem set object speed 8500,35
position object 8504,10000,-100,10000
load object "media/mobzombie6/mobzombie6.dbo",8505
load image "media/mobzombie6/mobzombie6_D.dds",8505
texture object 8505,8505
rotate object 8505,180,0,180
fix object pivot 8505
rem loop object 8500,319,354
rem set object speed 8500,35
position object 8505,10000,-100,10000
load object "media/mobzombie7/mobzombie7.dbo",8506
load image "media/mobzombie7/mobzombie7_D.dds",8506
texture object 8506,8506
rotate object 8506,180,0,180
fix object pivot 8506
rem loop object 8500,319,354
rem set object speed 8500,35
position object 8503,10000,-100,10000
load object "media/mobzombie8/mobzombie8.dbo",8507
load image "media/mobzombie8/mobzombie8_D.dds",8507
texture object 8507,8507
rotate object 8507,180,0,180
fix object pivot 8507
rem loop object 8500,319,354
rem set object speed 8500,35
position object 8507,10000,-100,10000
type zombie
zombielife as boolean
respawn as integer
followpath as boolean
speed as integer
attackspeed as integer
attackdamage as integer
walkanimationspeed as integer
hidinglocation as integer
health as integer
hiding as boolean
score as integer
lookpoint as integer
walktimer as integer
attacktimer as integer
attack as boolean
talking as integer
hitmarker as boolean
mytest as string
watch as boolean
lighttemp1 as integer
lighttemp2 as boolean
patrol as boolean
alert as boolean
head as integer
attackplayer
attackanimationstart1 as integer
attackanimationend1 as integer
attackframestart as integer
attackframeend as integer
attackanimationstart2 as integer
attackanimationend2 as integer
attaackspeed as integer
walkanimationstart as integer
walkanimationend as integer
walkspeed as integer
deathanimationstart1 as integer
deathanimationend1 as integer
deathanimationstart2 as integer
deathanimationend2 as integer
deathanimationstart3 as integer
deathanimationend3 as integer
deathspeed as integer
runanimationstart as integer
runanimationend as integer
runspeed as integer
idlestart as integer
idleend as integer
idlespeed
endtype
dim currentzombie(237) as zombie
for i = 200 to 237
zombietype = rnd(7)
if zombietype = 0
clone object i,8500
currentzombie(i).attackanimationstart1 = 318
currentzombie(i).attackanimationend1 = 354
currentzombie(i).attackframestart = 340
currentzombie(i).attackframeend = 350
currentzombie(i).attackspeed = 100
currentzombie(i).walkanimationstart = 235
currentzombie(i).walkanimationend = 259
currentzombie(i).deathanimationstart1 = 80
currentzombie(i).deathanimationend1 = 97
currentzombie(i).deathanimationstart2 = 119
currentzombie(i).deathanimationend2 = 138
currentzombie(i).deathanimationstart3 = 0
currentzombie(i).deathanimationend3 = 18
currentzombie(i).deathspeed = 100
currentzombie(i).runanimationstart = 300
currentzombie(i).runanimationend = 318
currentzombie(i).runspeed = 70
currentzombie(i).idlestart = 210
currentzombie(i).idleend = 233
currentzombie(i).head = 240
rem currentzombie(i).idlespeed =
endif
if zombietype = 1
clone object i,8501
currentzombie(i).attackanimationstart1 = 318
currentzombie(i).attackanimationend1 = 354
currentzombie(i).attackframestart = 340
currentzombie(i).attackframeend = 350
currentzombie(i).attackspeed = 100
currentzombie(i).walkanimationstart = 235
currentzombie(i).walkanimationend = 259
currentzombie(i).deathanimationstart1 = 80
currentzombie(i).deathanimationend1 = 97
currentzombie(i).deathanimationstart2 = 119
currentzombie(i).deathanimationend2 = 138
currentzombie(i).deathanimationstart3 = 0
currentzombie(i).deathanimationend3 = 18
currentzombie(i).deathspeed = 100
currentzombie(i).runanimationstart = 300
currentzombie(i).runanimationend = 318
currentzombie(i).runspeed = 70
currentzombie(i).idlestart = 210
currentzombie(i).idleend = 233
currentzombie(i).head = 240
rem currentzombie(i).idlespeed =
endif
if zombietype = 2
clone object i,8502
currentzombie(i).attackanimationstart1 = 318
currentzombie(i).attackanimationend1 = 354
currentzombie(i).attackframestart = 340
currentzombie(i).attackframeend = 350
currentzombie(i).attackspeed = 100
currentzombie(i).walkanimationstart = 235
currentzombie(i).walkanimationend = 259
currentzombie(i).deathanimationstart1 = 80
currentzombie(i).deathanimationend1 = 97
currentzombie(i).deathanimationstart2 = 119
currentzombie(i).deathanimationend2 = 138
currentzombie(i).deathanimationstart3 = 0
currentzombie(i).deathanimationend3 = 18
currentzombie(i).deathspeed = 100
currentzombie(i).runanimationstart = 300
currentzombie(i).runanimationend = 318
currentzombie(i).runspeed = 70
currentzombie(i).idlestart = 210
currentzombie(i).idleend = 233
currentzombie(i).head = 240
rem currentzombie(i).idlespeed =
endif
if zombietype = 3
clone object i,8503
currentzombie(i).attackanimationstart1 = 318
currentzombie(i).attackanimationend1 = 354
currentzombie(i).attackframestart = 340
currentzombie(i).attackframeend = 350
currentzombie(i).attackspeed = 100
currentzombie(i).walkanimationstart = 235
currentzombie(i).walkanimationend = 259
currentzombie(i).deathanimationstart1 = 80
currentzombie(i).deathanimationend1 = 97
currentzombie(i).deathanimationstart2 = 119
currentzombie(i).deathanimationend2 = 138
currentzombie(i).deathanimationstart3 = 0
currentzombie(i).deathanimationend3 = 18
currentzombie(i).deathspeed = 100
currentzombie(i).runanimationstart = 300
currentzombie(i).runanimationend = 318
currentzombie(i).runspeed = 70
currentzombie(i).idlestart = 210
currentzombie(i).idleend = 233
currentzombie(i).head = 240
rem currentzombie(i).idlespeed =
endif
if zombietype = 4
clone object i,8504
currentzombie(i).attackanimationstart1 = 318
currentzombie(i).attackanimationend1 = 354
currentzombie(i).attackframestart = 340
currentzombie(i).attackframeend = 350
currentzombie(i).attackspeed = 100
currentzombie(i).walkanimationstart = 235
currentzombie(i).walkanimationend = 259
currentzombie(i).deathanimationstart1 = 80
currentzombie(i).deathanimationend1 = 97
currentzombie(i).deathanimationstart2 = 119
currentzombie(i).deathanimationend2 = 138
currentzombie(i).deathanimationstart3 = 0
currentzombie(i).deathanimationend3 = 18
currentzombie(i).deathspeed = 100
currentzombie(i).runanimationstart = 300
currentzombie(i).runanimationend = 318
currentzombie(i).runspeed = 70
currentzombie(i).idlestart = 210
currentzombie(i).idleend = 233
currentzombie(i).head = 260
rem currentzombie(i).idlespeed =
endif
if zombietype = 5
clone object i,8505
currentzombie(i).attackanimationstart1 = 318
currentzombie(i).attackanimationend1 = 354
currentzombie(i).attackframestart = 340
currentzombie(i).attackframeend = 350
currentzombie(i).attackspeed = 100
currentzombie(i).walkanimationstart = 235
currentzombie(i).walkanimationend = 259
currentzombie(i).deathanimationstart1 = 80
currentzombie(i).deathanimationend1 = 97
currentzombie(i).deathanimationstart2 = 119
currentzombie(i).deathanimationend2 = 138
currentzombie(i).deathanimationstart3 = 0
currentzombie(i).deathanimationend3 = 18
currentzombie(i).deathspeed = 100
currentzombie(i).runanimationstart = 300
currentzombie(i).runanimationend = 318
currentzombie(i).runspeed = 70
currentzombie(i).idlestart = 210
currentzombie(i).idleend = 233
currentzombie(i).head = 260
rem currentzombie(i).idlespeed =
endif
if zombietype = 6
clone object i,8506
currentzombie(i).attackanimationstart1 = 318
currentzombie(i).attackanimationend1 = 354
currentzombie(i).attackframestart = 340
currentzombie(i).attackframeend = 350
currentzombie(i).attackspeed = 100
currentzombie(i).walkanimationstart = 235
currentzombie(i).walkanimationend = 259
currentzombie(i).deathanimationstart1 = 80
currentzombie(i).deathanimationend1 = 97
currentzombie(i).deathanimationstart2 = 119
currentzombie(i).deathanimationend2 = 138
currentzombie(i).deathanimationstart3 = 0
currentzombie(i).deathanimationend3 = 18
currentzombie(i).deathspeed = 100
currentzombie(i).runanimationstart = 300
currentzombie(i).runanimationend = 318
currentzombie(i).runspeed = 70
currentzombie(i).idlestart = 210
currentzombie(i).idleend = 233
currentzombie(i).head = 260
rem currentzombie(i).idlespeed =
endif
if zombietype = 7
clone object i,8507
currentzombie(i).attackanimationstart1 = 318
currentzombie(i).attackanimationend1 = 354
currentzombie(i).attackframestart = 340
currentzombie(i).attackframeend = 350
currentzombie(i).attackspeed = 100
currentzombie(i).walkanimationstart = 235
currentzombie(i).walkanimationend = 259
currentzombie(i).deathanimationstart1 = 80
currentzombie(i).deathanimationend1 = 97
currentzombie(i).deathanimationstart2 = 119
currentzombie(i).deathanimationend2 = 138
currentzombie(i).deathanimationstart3 = 0
currentzombie(i).deathanimationend3 = 18
currentzombie(i).deathspeed = 100
currentzombie(i).runanimationstart = 300
currentzombie(i).runanimationend = 318
currentzombie(i).runspeed = 70
currentzombie(i).idlestart = 210
currentzombie(i).idleend = 233
currentzombie(i).head = 260
rem currentzombie(i).idlespeed =
endif
currentzombie(i).zombielife = 1
currentzombie(i).respawn = respawn
currentzombie(i).followpath = 0
currentzombie(i).attackdamage = 5
currentzombie(i).health = zombiehealth
currentzombie(i).speed = 400
currentzombie(i).hiding = 0
currentzombie(i).hidinglocation = 0
currentzombie(i).score = 25
currentzombie(i).lookpoint = 0
currentzombie(i).walktimer = 0
currentzombie(i).attacktimer = 0
currentzombie(i).attack = 0
currentzombie(i).talking = 0
currentzombie(i).hitmarker = 0
currentzombie(i).mytest = "none"
currentzombie(i).watch = 0
currentzombie(i).attackplayer = 0
currentzombie(i).lighttemp1 = -1
currentzombie(i).lighttemp2 = 0
currentzombie(i).alert = 0
next i
for i = 200 to 237
sc_setupobject i,2,0
next i
for i = 200 to 237
scale object i,400,400,400
sc_allowobjectscaling i
sc_updateobject i
set object collision off i
set object light i,1
sc_setobjectcollisionoff i
sc_updateobject i
position object i,0,-100,0
next i
myzombies = 205
z = 200
return
Sorry for the mass amounts of code, but I'm completely lost as of what I'm doing wrong. For some reason when I comment out some of the clone object commands it works, no idea why... I'm feeling so stupid/frustrated right now
Edit: Ok, I guess I'll never be able to figure out what exactly the problem was. I ended up loading my animations after the code listed above instead of before and now everything works great. Put that in the question box that is never to be opened again
Now my only question is, does having three or four animations loaded into the system while playing the game significantly drain performance? It seems to be running considerably slower.
If it isn't one thing its the other
The fastfood zombie killer