Skip to content

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

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))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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