Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

set_colorkey

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming
View previous topic :: View next topic  
Author Message
graemev



Joined: Sun Mar 09, 2008 5:17 pm
Posts: 14
Location: Berkshire, England

PostPosted: Sun May 16, 2010 6:09 pm    Post subject: set_colorkey Reply with quote

I thought the pyinvaders game (LXF110) would make a good intro from my son (and if he takes the bait ... he won't need to wait a month to carry on)

... mostly fine but:
self.bitmap.set_colorkey(....) did not seem to work (always got a black border ... wracked my brains ...seems familiar
...finally (Smile) resorted to this forum (18+ months after the article was published ... yea right!) ...no joy , so started to write this up ... amazing how putting it down in black and white throws it in to stark contrast (Wink) ... nobody else was having the problems .. I've got custom sprites (my son is more motivated by the images) ...so I go back to originals ... all works ... after a series of binary chops the answer is:

"the BMP need to be 16 bit ... gimp default of 32 bit does not work"

..so thanks to the ability to download original article and grep it ....I see no mention of 16bits ...so it's worth posting.

..so thanks for that , sorted , fixed my problem, couldn't do it without you Smile
_________________
--

Graeme - $(fortune)
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast