Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-28-2002, 10:10 PM
Ningnong Ningnong is offline
Registered User
Ningnong's Avatar
Join Date: Nov 2002
Location: < -- way
Posts: 262
Ningnong is on a distinguished road
showani bug

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.
__________________
Former Global Scripting Team Member


Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:38 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.