Skip to content

Hi!, not an issue, just a suggestion. #2

@Alpicat

Description

@Alpicat

By adding the below to the button draw method you can get a really simple animation, this could be usefull if you update the tutorial in the future, as it took me a while to figure it our lol.

    if self.clicked == False:
        screen.blit(self.image, (self.rect.x, self.rect.y))
    else:
        screen.blit(self.image, (self.rect.x, self.rect.y + 5))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions