Trying to make a basic Python score counter in a game... will not count.
Kwpolska
kwpolska at gmail.com
Sun Dec 16 12:50:18 EST 2012
On Sun, Dec 16, 2012 at 6:44 PM, tbg <darrienglasser at gmail.com> wrote:
> I changed it so that it said winx += 1 etc. and it doesn't seem to save it. I also tried pulling the variables from the loop and making them global variables at the top.
>
> The latter game me a traceback error when printing out the results. Any ideas?
>
> http://puu.sh/1BCbG
>
> Code Preview/Download
>
> https://www.box.com/s/jiu0259nohx0kae2am57
> --
> http://mail.python.org/mailman/listinfo/python-list
Put this on top of your function:
global winx, winy
PS. Why did you put those delays in? They are useless.
--
Kwpolska <http://kwpolska.tk>
stop html mail | always bottom-post
www.asciiribbon.org | www.netmeister.org/news/learn2quote.html
GPG KEY: 5EAAEA16
More information about the Python-list
mailing list