On Thu, Oct 7, 2010 at 8:08 PM, kevin hayes
<kevinosky@xxxxxxxxx> wrote:
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 constructor, as well as the main) By constructor you mean the first __init__( variable, variable...) ? This stuff doesn't come naturally to me, but I find it fascinating. If you could just show me (more explicitly) how to do this, that would help.
Thanks for the links, I will check them out.
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 event handler cases are probably not doing what you intend. If you get the resize working so you can see the circle change and it grows or moves at a strange rate, re-examine those calculations.
Gumm