Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pygame scroll event

 if e.type == pygame.MOUSEBUTTONDOWN:
            if e.button == 4: scroll_y = min(scroll_y + 15, 0)
            if e.button == 5: scroll_y = max(scroll_y - 15, -300)
 
PREVIOUS NEXT
Tagged: #pygame #scroll #event
ADD COMMENT
Topic
Name
4+7 =