maxman
Well-known member
You changed the frame number didn't you? Did you exclude (comment - //) subject_to_gravity, subject_to_minz, and subject_to_maxz? Truth is, I got the script from Bloodbane for one of my mods and it works fine for me. I have no idea why it doesn't work for you.
Here's a full one which I added script for one of the enemies; Note, it's a spawning animation with follow anim I did:
Here's a full one which I added script for one of the enemies; Note, it's a spawning animation with follow anim I did:
Code:
anim follow1
@script
void self = getlocalvar("self");
if(frame==0){ // bbox is inactive yet
changeentityproperty(self, "Subject_to_Gravity", 0);
changeentityproperty(self, "Subject_to_Wall", 0);
changeentityproperty(self, "Subject_to_MinZ", 0);
changeentityproperty(self, "Subject_to_MaxZ", 0);
}
if(frame==12){ // this when enemy's bbox is active
changeentityproperty(self, "Subject_to_Wall", 1);
changeentityproperty(self, "Subject_to_MinZ", 1);
changeentityproperty(self, "Subject_to_MaxZ", 1);
changeentityproperty(self, "Subject_to_Gravity", 1);
}
@end_script
delay 12
offset 21 68
jumpframe 6 0 0 0.3
frame data/chars/Williams/1.png
offset 21 69
frame data/chars/Williams/2.png
offset 21 70
frame data/chars/Williams/3.png
offset 21 70
frame data/chars/Williams/4.png
offset 21 70
frame data/chars/Williams/3.png
offset 21 69
frame data/chars/Williams/2.png
@cmd looper 0 5
delay 9
offset 22 66
frame data/chars/Williams/5.png
offset 20 68
frame data/chars/Williams/6.png
offset 20 69
frame data/chars/Williams/7.png
offset 20 72
frame data/chars/Williams/8.png
offset 19 71
frame data/chars/Williams/9.png
offset 20 69
frame data/chars/Williams/10.png
offset 21 68
frame data/chars/Williams/1.png