I played arround with the code a bit and started changing the frames manualy instead of loop object or play object. Pneumaticdrill from banshee studios helped me out.
He gave me this code:
frame=frame+(speedOfAnim*gameSpeed)
Normaly, he said, the value of speedOfAnim is about 0.001. After a lot of testing I came to the conclusion that the value I needed for the darkmatter animations was: 0.00001602.
What I'm getting at is, the idle animation and the attack animation don't get my FPS down. Why? I don't think it's a coincidence that these animations are the first animations of the model. The further you go, the slower it gets.
My conclusion: Maybe everything starts to slow down this much because my computer suddenly has to work with this extreme values. I do think he'll have less trouble when he only had to this:
frame=frame+1
if frame>150 then frame=0
set object frame PLAYER,frame
The darkmatter models have about 104160. This was the convertion code I found on the forum:
(Total frames()/650)*Frame number needed
i.e. The viking model has 104160 frames so
104160/650=160.2
First walk frame is 450
450*160.2=72110
So for all of walk -
72110 - 88135 : Walk
: 72110-75315 - Position To Loop
: 75315-84930 - Looping Walk
: 84930-88135 - Return To Stance
As you can see this are all big values, maybe this could be causing the problem?
Games don't kill ...
I do!
http://www.gamingzone.be the ultimate gaming community