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:
pygame zero keep count
|
|
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 |