[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] duplicate images
- To: pygame-users@xxxxxxxx
- Subject: [pygame] duplicate images
- From: Thiago Petruccelli <thiagopetruccelli@xxxxxxxxx>
- Date: Thu, 8 Oct 2009 15:56:16 -0300
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Thu, 08 Oct 2009 15:04:58 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=6JlJFlUhEUsECnk824i17wLl5/+fgXP/kM4PV+aGQyU=; b=fajJbvnqlWx4wHkjs74NedfqGGKgWOt4KUQImBXbtyHSHmBfZCIHcX7A0eRunY+KVz FueNtC5mwJ5EhgtEx7oBbcZW/BnnDStzonmv2e1GjYUSyBRu89gGAJljj4QioWVbpW5U Rx7PyWQym5bHIntjuRGA+jZCOaYLWOEZ/nb6w=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=OkV9AZdwfPOm651oip0OowAbCOpOL9jj3teWXOcEI/Px93S8nd0cnTEGF6O+MIPdmO 76nP9wrriLe2tKa7aaLqdf0apIokPd5O+WMeFYa/CDPqXofyWa44PZue20u0q81DHGPz llpFEI8Z10boa7KLcGeMqgvJN+xHwsjoWP4fg=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hi!
I am using windows(ugh) in the interface of my game, and then I made a close button. My game structure load all images in the startup of the game; but when I try to copy then, things don't work as I wanted... when I close a window and open another (wich is supposed to have a copy of the close button with his own properties), it happens that the close button appears in the old place, not in the right place in the opened window. I tried to use de copy command from the copy module, but it didn't work. It seems that python thinks it's the same object; I want to make a duplicate of it.
I saw an example of a game using various enemies(the same image), but the author load an image for every new enemy on the screen (using pygame.image.load)
Someone knows how to do this duplicate?
--
Thiago Henrique Petruccelli