Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-25-2004, 01:49 AM
-Ramirez- -Ramirez- is offline
Registered User
Join Date: Jun 2002
Location: USA, Ohio
Posts: 729
-Ramirez- has a spectacular aura about-Ramirez- has a spectacular aura about
Gani Scripts

I'm not sure if this was a bug or if it was intentional... but if it was intentional, I would like to have it fixed. :/

Gani scripts don't begin executing for 0.05 seconds after the gani is displayed (when used in showani and shoot... maybe on the player as well, although I haven't tested that). This causes a brief flash if you have the script displaying an image that needs to be there RIGHT as the gani is drawn.

You can place the showani or shoot script completely by itself in the SCRIPT block and it will still have a delay. So it's not a problem with the events not being called or something. The entire script isn't parsed until 0.05 seconds after the gani is displayed. However, sprite definitions that are used in the ANI block are immediately displayed...

I've done a ton of testing with this, so if I'm simply doing something wrong, I don't see how.
__________________
Kat

Last edited by -Ramirez-; 03-25-2004 at 09:05 AM..
Reply With Quote
  #2  
Old 03-25-2004, 04:37 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Hmm, I see what you mean, putting the script portion of the gani in front of the ani section doesn't do anything either (only thing I could think of)
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #3  
Old 03-25-2004, 02:03 PM
Polo Polo is offline
Classic Systems Admin
Join Date: Sep 2002
Location: Vancouver, Canada
Posts: 735
Polo is on a distinguished road
Send a message via AIM to Polo
Im guessing this is because the scripting engine in Graal works on a timer of 0.05 seconds for events and things. When you call to display the gani, it is shown immediately, but any events in your gani script (playerenter and created) will not be calle duntil the following 0.05 second timeout, as the current script processing has already begun.

Although I wouldn't know without looking at Graal source, I'd imagine this is the case, and as such I dont know if it can be fixed without rewriting the engine that handles scripting stuff.

Would be interesting to see what Stefan and Unixmad say on this issue :/
__________________
Be good little players, or Master Storm will ban you!



Proof that the staff are crazy..
*Ghost Pirate: I'm a little teacup short and stubbe here is my raygun here is my butt
DragonX: Jumping jack rabbits Batman! Our eggo waffles have been stolen! To the batmobile Robin!
X-Mann (RC): I have a head ache
Reply With Quote
Reply


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 01:35 AM.


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