[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Receiving stack overflow when inheriting Sprite class




You. Can simplifyÂ

self.rect.center = scn.rect.center

Also because you use else, you can't hold
âmultiple directions at the same time.


If you want to bounce off the top, then

. ÂÂyvel *=-1
â
â