From: "Dan Samber" <[EMAIL PROTECTED]>
Subject: Re: evtGetEvent, POSE and confusion
>
> I want to do is to do some animation.
> In the ideal world I would set up a "DanEvent" that would be generated
every X ticks
> of the clock. I understand how this can be done with "nilEvents" but the
facts remain that
I don't understand why you are putting calls to EvtGetEvent() inside your
MainFormHandleEvent. I suggest you take a look at the source code for
HardBall or Reptoids. The basic strategy is to modify the call to
EvtGetEvent within the EventLoop function so it either uses evtWaitForever
or the number of ticks to wait, based on the current state of the game.
*After* the call to EvtGetEvent() but before calling SysHandleEvent(), code
is added inside the event loop to draw the next animation frame.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/