Re: [pygame] more circles

2010-10-10 Thread kevin hayes
Thank youyou've been so generous with your time and input, I can't thank you enough. On Sat, Oct 9, 2010 at 1:17 PM, B W stabbingfin...@gmail.com wrote: Yes, if you're not getting it then an example is probably better than more explanation. Here's your program with the changes I had in

Re: [pygame] more circles

2010-10-09 Thread Leif Theden
if you change the size of the sprite, you need to redraw it. the bit you should move from the constructor to the updating func (or a resize func) is the bit that actually draws your circle onto the sprites buffer self.image. On Fri, Oct 8, 2010 at 11:08 AM, kevin hayes kevino...@gmail.com wrote:

Re: [pygame] more circles

2010-10-09 Thread B W
Yes, if you're not getting it then an example is probably better than more explanation. Here's your program with the changes I had in mind. MoveCircleSizeCircle.py Makes a circle that changes it's position and size by the keyboard, 10/3/10 import pygame pygame.init() screen =

Re: [pygame] more circles

2010-10-07 Thread B W
We are a supportive bunch, Kevin. From time to time even old-timers need help. Unless you are brand spanking new to computers and programming, or really struggling to master the basics, I would expect you probably won't need a tutor. You just need a few good resources. Chances are someone has

Re: [pygame] more circles

2010-10-07 Thread Lenard Lindstrom
I would also suggest looking at the example programs that are installed with Pygame in pygame\examples. You can run them directly like this: python -m pygame.examples.aliens for example. They show how different pygame features work. Also, just look at the docs: python -m pygame.docs

Re: [pygame] more circles

2010-10-07 Thread kevin hayes
I put some thought into your suggestions, but I'm still not piecing it together. I tried to use the inflate, transform.scale in my update function, but that didn't work. Also, I don't understand your hint (hint: move some of the constructor code to a resize method and call that from in

[pygame] more circles

2010-10-06 Thread kevin hayes
Hi, Well, I got it working. The circle moves correctly according to keyboard input. The trouble I am having is with resizing the circle/sprite. Everything looks logical to me, but it won't function the way I want it to. I tried using the rect.inflate(x,y) method, but I couldn't see how to

Re: [pygame] more circles

2010-10-06 Thread B W
You have to resize the rect *and* the image. You can use pygame functions Rect.inflate* and transform.scale, respectively, or you can do-it-yerself (hint: move some of the constructor code to a resize method and call that from in constructor, as well as the main loop). Also, the += and -= in the

Re: [pygame] more circles

2010-10-06 Thread kevin hayes
Thank you so much for your reply! Yeah, I'm trying to get a tutor through some friends of my Mom, but if I can't find one that wayI'll probably ask people on this list. I just need someone to answer a question every couple of days. I really appreciate your help. Thanks again! On Wed, Oct