Page 1 of 1

physical response bug

PostPosted: Thu Jan 05, 2012 11:15 am
by phyzix5761
I am making a pac-man clone game and I am setting up the walls. I am using physical response when pacman collides with the wall. This works great! Except when he hits the right side of the wall. He seems to stop moving for a second, as expected, but then he warps to the other side of the wall. All other sides work correctly but not the right side.

See if you guys can figure out what's wrong.

Keys to move are W A S D. The wall is set up as a filled region actor.

Re: physical response bug

PostPosted: Thu Jan 05, 2012 6:34 pm
by SuperSonic
The problem is your animation. I've seen problems like this before. You can avoid it by using a filled region for your collision detector instead :wink:

Re: physical response bug

PostPosted: Thu Jan 05, 2012 10:35 pm
by phyzix5761
I am using a filled region. I have the problem either ways.

Re: physical response bug

PostPosted: Thu Jan 05, 2012 10:45 pm
by skydereign
No, you are using filled regions for the walls, not the player's collision detection. You need to use a filled region to act as the player's collision. If you make a square filled region around the hero actor, and have the hero parented to it, then the collisions will be what you want. Bearing in mind you have to move the filled region around instead of the hero actor.

Re: physical response bug

PostPosted: Fri Jan 06, 2012 2:26 am
by phyzix5761
Thank you guys. That worked!