Reload(type=1) #Title text = pygame.font.Font(None, 30).render("Frames And Animation", True, (255,255,255), (0,0,0)) screen.blit(text, (50, 10)) word = str("Frame: " + str(int(character.frame))) text = pygame.font.Font(None, 25).render(word, True, (255,255,255), (0,0,0)) screen.blit(text, (110, 250)) pygame.draw.rect(screen, (0,10,50), (character.rect.x - 35, character.rect.y - 35, 150,150), 0) pygame.draw.rect(screen, (100,10,50), (character.rect.x - 35, character.rect.y - 35, 150,150), 2) #####Buttons #Left Frame Button if left.IsHover(): left.color = (0,100,200) else: left.color = (0,10,50) #Right Frame Button if right.IsHover(): right.color = (0,100,200) else: right.color = (0,10,50) #Capture Frame Button if capture.IsHover(): capture.color = (0,100,200) else: capture.color = (0,10,50)