Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Find the Error
Index -> Programming, Python -> Python Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Notthebbq




PostPosted: Mon May 16, 2011 1:28 pm   Post subject: Find the Error

Working on a TD game of sorts, and the mouse code doesn't want to work. I provided the code we have thus far, anyone who could offer some input on how to fix is appreciated.


python.txt
 Description:
the code mentioned in the post

Download
 Filename:  python.txt
 Filesize:  3.1 KB
 Downloaded:  265 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
102jon




PostPosted: Mon May 16, 2011 1:52 pm   Post subject: Re: Find the Error

Read the documentation on pygame, and learn how to debug yourself. You are handling the pygame.mouse.get_pos() function the wrong way. try this:

(MOUSEX, MOUSEY) = pygame.mouse.get_pos()
Display posts from previous:   
   Index -> Programming, Python -> Python Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: