[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] groups
- To: pygame-users@xxxxxxxx
- Subject: [pygame] groups
- From: "Gonzalo Castro" <gonzalo.castro.castilla@xxxxxxxxx>
- Date: Fri, 10 Oct 2008 17:27:53 +0200
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Fri, 10 Oct 2008 11:27:58 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=tHS5P+Rp7/2zn6w3oyNpQf07S0mLtCw/XAagH0Raxsw=; b=CYvqSt8KxIB9kV4mK09n53emGkCUJDbGuWK+F11HnOnvPlc+fk+6nlrTZeMid/Oi/Q Hs5NRgsS27sZ7dtRpecE4frI3vtuvUaVPx/9Jmzi7bjMVljfHDEpCnycyxbj3uJ1irgU Ih8KWVX0CuTldUJUHsGyRi8IwIRCzhYHao8gw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=t9DdaLgr2ZPxUmjvDqZiqlmAJCYRcuMh1A3HQ1JTw1Bt0ai2bEBuyL3Vs4IuMkulEN Wx5Sb8tu0cGJedVN6xU5xc6nWZfm51xoRIuryz5l/3pENHJexUY9hIxTTUt5hDIhyAkx /EogGtqVPB438rwkk2hKL91BeSX3QEp1vZIDE=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
HI! I'm practising with groups and I have problems. ;)
I have 2 clases, ball and killer... they are more or less the same,
and 3 objects: a 2 of class ball and the other of class killer. I
grouped both of 2 objects balls into a group called my_balls. I define
it like this:
global my_balls= pygame.sprite.Group(ball, second)
and at some point of the game I do:
print(myballs.has())
And this prints None. What Am I missing?
Thank you a lot. :)