Hello,
It says in the API that when the clock calls the function it returns 2 arguments, the delta and what other arguments you say. It does not say this everywhere there is the clock documentation though. That is why I was a little lost at why my function kept crashing. Why would I need the delta in every clock run function? It's strange, but I can work with it.
thanks,

Brandon Keith Biggs <http://www.brandonkeithbiggs.com/>
On 3/10/2015 5:54 PM, Rob wrote:
Hi,

I am slightly confused by what you are stating. What do you mean by returning 2 arguments after it ran an event with schedule_once. There is no return value, because it is an asynchronous call.

Pyglet.clock is the official clock being used everywhere in pyglet, AFAIK.

Rob

Op maandag 9 maart 2015 22:42:51 UTC+1 schreef Brandon Keith Biggs:

    Hello,
    I am messing around with pyglet.clock and I am wondering why the
    default clock returns 2 arguments after having ran an event
    scheduled with schedule_once?
    It returns the system time and your arguments.
    Is it best practice to not use the default clock, is that why it
    is like this? Does window have another clock that I am to use?
    Thanks,

-- Brandon Keith Biggs <http://www.brandonkeithbiggs.com/>

--
You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[email protected]>.
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to