Re: [pygame] Sprites false positive collision - newbie alert

2014-05-05 Thread AdamC
Hi Nik, many thanks for your very detailed response. I will go through your amended code to see where I went wrong and correct the issues - all part of the learning curve. I'm also happy to see your completely cleaned-up version if you have time. Currently, I'm interested in where I went wrong wi

[pygame] Sprites false positive collision - newbie alert

2014-05-05 Thread AdamC
I'm having problems with sprites collision. I'm trying to use two different methods (not at the same time) to get success but each version is throwing up the same problem - each 'enemy' sprite is detected as colliding with the player and being deleted. I included the self.rect = self.image.get_re

Re: [pygame] Advice on turning sprite (newbie)

2009-10-26 Thread AdamC
Currently, the tank moves around (although only once every time the key is pressed down - it doesn't move again if you hold the key down). Also, the tank doesn't turn. It would be nice to clear up these couple of problems. Here is the code as it stands: http://dpaste.com/112175/ Thanks Adam

Re: [pygame] Advice on turning sprite (newbie)

2009-10-26 Thread AdamC
2009/10/26 Luke Paireepinart : > > > On Mon, Oct 26, 2009 at 6:32 AM, Luke Paireepinart > wrote: >> >> >> On Mon, Oct 26, 2009 at 6:25 AM, AdamC wrote: >>> >>> I'm learning pygame (also trying to teach my sons in the ins and outs >>>

[pygame] Advice on turning sprite (newbie)

2009-10-26 Thread AdamC
I'm learning pygame (also trying to teach my sons in the ins and outs of python) and am trying to write a small simple game where a tank moves around the screen on the user's press of the cursor keys. I've managed to get this working without the tank turning and without using an object oriented app