In your OB class you're using tuples for each attribute. The
attributes are expected to be numbers:
class OB(object):
def __init__(self, sprite):
self.left = sprite.x-sprite.width/2
self.top = sprite.y+sprite.height/2
self.right = sprite.x+sprite.width/2
self.bottom = sprite.y-sprite.height/2
That should work.
(BTW, if you haven't noticed, sprites have left, top, etc. attributes as well.)
Hope that helps :-)
MWM
> --
> You received this message because you are subscribed to the Google Groups "Rabbyt" group.
> To post to this group, send email to rab...@googlegroups.com.
> To unsubscribe from this group, send email to rabbyt+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rabbyt?hl=en.
>
>