Skip to main content

easy_animate

animate helper


j t l
(crazydave2345)

animate.py:

mod contains:

animate.animate(pic,a1,b1,a2,b2,delay):

pic: the picture

a1:initial x

b1:initial y

a2:end x

b2:end y

delay: delay in milliseconds

smooth 2px diff

good:5px diff

ok:10px diff

HD: 1px diff

NAA(Not a Animation):<12px diff

My own Website coming!

works on windows

does it work on mac? please coment compatibility

Links

Home Page
http://www.mediafire.com/?c0mt426gag4f4r2

Releases

easy_animate .2 — 20 Jun, 2012

Pygame.org account Comments

  • James Lu 2012-06-18 14:54:04

    that's mine ihave 2 pygame acounts:
    the one here
    and 
    the one above 
    source
    import pygame
    def animate(pic,a1,b1,a2,b2,de):
        screen.blit(pic,[a1,b1])
        pygame.display.flip()
        pygame.time.delay(de)
        screen.blit(pic, [a2,b2])
        pygame.draw.rect(screen, [255,255,255],[x, y, a1, b1], 0)
        pygame.display.flip

  • James Lu 2012-06-18 14:55:37

     animate.animate(pic,a1,b1,a2,b2,delay): pic: the picture
     a1:initial x
     b1:initial y 
    a2:end x 
    a3:end y 
    delay: delay in milliseconds