Hi, Boco noticed some bugs about showani in the new graal exe and i'd like to share them:
-=Showani bugs=-
1) If you use showani to show a character animation (like idle or walk), then you MUST use it from an NPC with the showcharacter; command or else it will not work.
2) Showani does not like to work in weapon scripts. The animation will be frozen on the first frame. Also, it seems that if the gani uses any parameters (PARAM1, PARAM2), those are disregarded.
-=Example Scripts=-
::(For problem 1)::
(As you can see, this script will only display a black dot. You can hear the walk sounds, though. My guess is that the animation is looking to the NPC for info on how the character looks. Finding nothing, it doesn't draw.)
NPC Code:
NPC picture: door.png
// NPC made by Boco
if (created) {
showani 0,x+3,y,2,walk,;
}
(Now, try this script. As you will notice, it will now work, but the door image will be replaced by the image of a person.)
NPC Code:
NPC picture: door.png
// NPC made by Boco
if (created) {
showcharacter;
showani 0,x+3,y,2,walk,;
}
::(For problem 2)::
(When you run this script, notice that only a black dot is placed down. Showani does not recognize the animation parameters (PARAM1, PARAM2).)
NPC Code:
NPC picture: door.png
// NPC made by Boco
if (created) {
}
if (playertouchsme) {
toweapons ShowAni Test;
}
if (weaponfired) {
showani 0,playerx,playery,playerdir,houses_bogenera2,;
}
(But, if you use a character gani, you can see that it freezes on the first frame.)
NPC Code:
NPC picture: door.png
// NPC made by Boco
if (created) {
}
if (playertouchsme) {
toweapons ShowAni Test;
}
if (weaponfired) {
showani 0,playerx,playery,playerdir,walk,;
}
Just like to bring that up.