[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] timer, update
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
lorca <pylorca@yahoo.com.ar> said:
> Hi, how can i do that the image update every 300ms, for example:
>
> a = get_time()
> while 1:
> if get_time() > (a + 300ms)
> updateImage()
> a = get_time()
>
> i need the methods to get time
> [...]
Read the pygame.time documentation.
[]s,
- --
Fábio "ctg \pi" Dias Moreira
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQFARj9UalOQFrvzGQoRAhxSAKCpiGUG79DcNgqPsBvRmZufL6c/bACg3ZBr
BglWzWi0FBR7JW3p2nxmez0=
=8puV
-----END PGP SIGNATURE-----