Re: Problems with collision response

2010-01-17 Thread John Nagle
Joabos wrote: I'm doing a project, and I need to insert collision detection and response on it. Here's the code. What am I doing wrong? Where to begin... 1. Most of your code will never be executed because it is inside multiline triple-quoted strings. 2. Your approach to

Re: Problems with collision response

2010-01-17 Thread Steven D'Aprano
On Sun, 17 Jan 2010 06:14:59 -0800, Joabos wrote: > I'm doing a project, and I need to insert collision detection and > response on it. Here's the code. What am I doing wrong? > > >#Update all sprites, map > self.player.update(dt) > > #Collide other sprites >

Re: Problems with collision response

2010-01-17 Thread MRAB
Joabos wrote: I'm doing a project, and I need to insert collision detection and response on it. Here's the code. What am I doing wrong? #Update all sprites, map self.player.update(dt) #Collide other sprites collisions = rabbyt.collisions.aabb_collide_single(

Re: Problems with collision response

2010-01-17 Thread Joabos
-questions.html > > Diez > -- > http://mail.python.org/mailman/listinfo/python-list > > Oh, sorry. Well, what's happenning is, whenever I boot the entire project, there is *no* collision at all, when the player should stand on a tile. I use Rabbyt and pyglet. Th

Re: Problems with collision response

2010-01-17 Thread Diez B. Roggisch
Am 17.01.10 15:14, schrieb Joabos: I'm doing a project, and I need to insert collision detection and response on it. Here's the code. What am I doing wrong? Not telling us what's happening, and what *should* happen, for starters. What do you expect? The code you gave us isn't stand-alone, you

Re: Problems with collision response

2010-01-17 Thread Diez B. Roggisch
Am 17.01.10 15:14, schrieb Joabos: I'm doing a project, and I need to insert collision detection and response on it. Here's the code. What am I doing wrong? Not telling us what's happening, and what *should* happen, for starters. What do you expect? The code you gave us isn't stand-alone, you

Problems with collision response

2010-01-17 Thread Joabos
player.left < 0: self.player.collide(COL_TYPE.WALL, DIRECTION.LEFT, 0) if self.player.bottom < 0: self.player.collide(COL_TYPE.WALL, DIRECTION.DOWN, 0) """ -- View this message in context: http://old.nabble.com/Problems-with-coll