Trying to make a basic Python score counter in a game... will not count.

tbg darrienglasser at gmail.com
Sun Dec 16 19:00:26 CET 2012


On Sunday, December 16, 2012 12:50:18 PM UTC-5, Kwpolska wrote:
> 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

I figured it would be too much for the person playing the game. Getting attacked with lines of text and all. Although it is a pain developing with it.

And by the way, works perfectly now. Thanks for your help.



More information about the Python-list mailing list