Python Forum
pygame zero keep count
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pygame zero keep count
#2
score is unknown to the function on_mouse_down. The best way when not using classes would be to pass that variable to that function. Global keyword is a simple option, but it invites bad programming style.
Recommended Tutorials:
Reply


Messages In This Thread
pygame zero keep count - by Mirt56 - Feb-04-2019, 04:24 AM
RE: pygame zero keep count - by metulburr - Feb-04-2019, 12:52 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Count Letters in a Sentence (without using the Count Function) bhill 3 5,065 Jun-19-2018, 02:52 AM
Last Post: bhill

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020