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
Diez B. Roggisch-2 wrote: > > 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 e

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