Problem with Physical Response and Animation

Talk about making games.

Problem with Physical Response and Animation

Postby skyryder37 » Thu Jul 12, 2007 2:12 pm

Was hoping somebody here might be able to help, as I'm a new user of GE and still in the 'learning the environment' mode. I'm hoping to use GE to build a simple Dungeon Crawl type of game for the GP2x. After learning how to create an Actor and add an animation to it, one of my next tasks was to keep the actor from passing through barriers such as walls. For the most part I've been successful using WireFrames.

I'm having a problem with with my 'PlayerChar' after the actor collides with a 'SolidWall' actor. Essentially, when moving the 'PlayerChar' east, north, or south the physical response behavior is as expected. Even when PlayerChar runs into 'SolidWall' while facing west, 'PlayerChar' stops and does not pass through the wall. But once I change direction to either north or south, 'PlayerChar' appears to hop over 'SolidWall'. This doesn't happen when changing directions to the East.

After a couple hours messing with this, I removed PlayerChar from the game and replaced it with a Ball with a static animation. When running this version of the ged, the physical response behaved as expected. This leads me to believe there is a problem with the animation I used for PlayerChar. Has anyone encountered this behavior before? If so, are there certain rules about animations that I'm missing?

I'm attaching a zipped file with both the PLayerChar and ball versions of the ged (& data files). Perhaps some one can look at my PlayerChar animation and find a problem with it.

Thanks,

Skyryder37
"Meddle not in the affairs of dragons for you are crunchy and taste good with ketchup."
Attachments
WallTest.zip
Example of problem with animation collision.
(114.64 KiB) Downloaded 99 times
skyryder37
 
Posts: 2
Joined: Fri Jul 06, 2007 6:47 pm
Score: 0 Give a positive score

Postby jimmynewguy » Fri Jul 13, 2007 7:43 pm

:( cant seem 2 find what ur talking about, worked fine 4 me,
the only thing i can think of is instead of using wire frame regions use filled regions that MIGHT help cuz im not sure the char wont go through the walls no matter what i try :?:
User avatar
jimmynewguy
 
Posts: 1137
Joined: Sat Mar 31, 2007 6:27 pm
Score: 89 Give a positive score

Postby skyryder37 » Wed Jul 18, 2007 1:12 pm

I tried setting up a physical response on the wall object itself but whenever the the sprite collides with the walls that are close together, the screen jumps. Using the wire frame region eliminated that problem.

I've since redrawn the west facing PlayerChar animation and I'm not having the problem with the sprite passing through the walls after a collision and then a north or south movement. So the problem was in the animation itself but I still have no clue what was wrong with it.

skyryder37
"Meddle not in the affairs of dragons for you are crunchy and taste good with ketchup."
skyryder37
 
Posts: 2
Joined: Fri Jul 06, 2007 6:47 pm
Score: 0 Give a positive score

Postby Oman » Wed Jul 18, 2007 6:04 pm

i bet your problem was...

1. when you are going left, your guy is skinnier, because your looking at him sideways.
2. when you change to up your guy gets wider, because you are lookin at the front of him.

That makes him intersect with your wireframe. The physical response cant handle this kind of collision... so it pushes you outside of the wire,

When you changed your animations you didnt become so skinny perhaps, so i didn't push you out of the wireframe...

I have noticed this problem too :(
"Beyond a wholesome discipline, be gentle with yourself." - Max Ehrmann
User avatar
Oman
 
Posts: 268
Joined: Tue Oct 31, 2006 4:00 am
Location: Somewhere out there...
Score: 6 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron