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

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




PostPosted: Thu Apr 07, 2011 12:30 pm   Post subject: Leaving the trail behind

My group and I have run into a small problem with our TD game in potentia. Whatever image we use to stand in for the cursor leaves a trail of coloured pixels bahind it, ruining the otherwise untouched background. Does anyone have any tips on how to modify either the cursor image or the program itself so a trail of pixels is not left behind?

Wer're using Pygame with our coding, and this does not effect area with a background image loaded, just the area coloured as per the code commands.
Sponsor
Sponsor
Sponsor
sponsor
apython1992




PostPosted: Thu Apr 07, 2011 12:43 pm   Post subject: RE:Leaving the trail behind

Is it jumbled up colours with no distinct image, or just the cursor image never clearing?
Notthebbq




PostPosted: Thu Apr 07, 2011 12:53 pm   Post subject: Re: Leaving the trail behind

cursor image not clearing
apython1992




PostPosted: Thu Apr 07, 2011 1:03 pm   Post subject: RE:Leaving the trail behind

Try clearing the previous image before the next update.
Insectoid




PostPosted: Thu Apr 07, 2011 2:56 pm   Post subject: RE:Leaving the trail behind

Does Python not have access to the OS API? You may be able to change the image through the OS (though this would require you to write separate functions for each OS).
apython1992




PostPosted: Thu Apr 07, 2011 2:59 pm   Post subject: RE:Leaving the trail behind

That also would not be necessary with Pygame.
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  [ 6 Posts ]
Jump to:   


Style:  
Search: