Mailing List
Home
Forum Home
MUD Dev - Discussion of MUD system design, development, and implementation
Mac Game - Mac game development
Rivers of MUD - a Diku and Merc based multiuser dungeon
SMAUG
Subjects
Getting UDP through NAT/firewalls/whatever for a game
Getting UDP through NAT/firewalls/whatever for a game
QuickTime errors
Python script as stand alone MUD server
Various sound problems
Fragment Shaders & GL TEXTURE RECTANGLE EXT
Timers and global variables
Re: Language and platform for Text MUD server
Apparent acquisition of Yantis (mysupersales) by IDE
HID keyboard
Getting UDP through NAT/firewalls/whatever for a game
Microsoft Sparkle
Director MX
Congratulations Horizons
Yet more problems fullscreen mode
Apple Dev Kitchen Them 's tasty vittles, Maw!
NSOpenGLContext, Pbuffers, and drawables
More DCR "theft " naughtiness
dynamic sprite creation and imaging lingo
Re: Find stuff in Flash array?
Effects of skill imbalances?
QuickTime errors
Rom 2 4/Quickmud Enhancement/Bug fix
Working with XML files/CFURL
smooth scrolling/subpixel tweening
RE: (Ron help me?) Flash text
Flash Racing
MudDev FAQ 2
Browser based games
Installing GLUT
Special character in Flash XML
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
Re: some information about timeout objects (was: Re: [dirGames-L]
   Kil    l Child

Re: some information about timeout objects (was: Re: [dirGames-L]
   Kil    l Child

2003-12-12       - By Alex da Franca

 Back
At 13:48 Uhr -0800 12.12.2003, Thomas Higgins wrote:
>
>That means you must be careful when targeting a script object as you can get
>two exitFrame calls per frame if your target is a behavior with an exitFrame
>handler (the handler gets called once for the timeout object then again for
>the general frame event).

allow me to add how to avoid the overhead:

as seen in Toms mail, if the timeout object
'forwards' the event, it adds a reference to
itself as parameter.
so you can distinguish between 'regular'
exit-/prepareframe and additional
exit-/prepareframe events.

on exitframe me
  if the paramcount > 1 then exit -- caused by timeout
...
end

on prepareframe me
  if the paramcount > 1 then exit -- caused by timeout
...
end

surely you do only need the 'waste' of the extra
cycle, if you use a timeout object with this
behavior as target.
--

  |||
a?ex
 --

__ ____ ____ ____ ____ ____ ____ ____ ____ ____
dirGames-L mailing list  -  dirGames-L@(protected)
http://nuttybar.drama.uga.edu/mailman/listinfo/dirgames-l

Earn $52 per hosting referral at Lunarpages.