It's been a while but I'm revisiting an old feature and running into new problems. See the last thread for some background.
I've basically got a platformer game where I occasionally pause and unpause the gameworld.
While the gameworld is unpaused, everything works great. If I pause then unpause, it works great. If I pause the game and walk around on now-frozen dynamic items, it works great.
However, if my player character touches any now-frozen object that has a joint on it, all the connected world items just disappear with X and Y coordinates registering as 0,0. They aren't actually at 0,0 - they trigger the boundaryListener, so apparantly they are leaving the world altogether or having their x and y values turning to null.
I've turned off warm starting, I've turned off my own contact listener and boundary listener - same results. I'm using a vesrion from about 1.5 weeks ago from the SVN. I've run the bug through a variety of scenarios and it's fairly consistent - only if the player touches a static object with a joint does the error occur.
Any idea why this would occur, or where I could start looking to make it work? I'm at a complete loss.
I have an example level done up for ease of display: http://www.protonaut.net/dev/21.swf?levelId=362
The level is rigged so all you have to do is watch, then hit "spacebar" to pause the level. Using WASD you can jump onto the stack of rods and you will see the error.
"R" resets the game, then try the same thing except collect the ball on the right before pressing space. no error!
I've basically got a platformer game where I occasionally pause and unpause the gameworld.
While the gameworld is unpaused, everything works great. If I pause then unpause, it works great. If I pause the game and walk around on now-frozen dynamic items, it works great.
However, if my player character touches any now-frozen object that has a joint on it, all the connected world items just disappear with X and Y coordinates registering as 0,0. They aren't actually at 0,0 - they trigger the boundaryListener, so apparantly they are leaving the world altogether or having their x and y values turning to null.
I've turned off warm starting, I've turned off my own contact listener and boundary listener - same results. I'm using a vesrion from about 1.5 weeks ago from the SVN. I've run the bug through a variety of scenarios and it's fairly consistent - only if the player touches a static object with a joint does the error occur.
Any idea why this would occur, or where I could start looking to make it work? I'm at a complete loss.
I have an example level done up for ease of display: http://www.protonaut.net/dev/21.swf?levelId=362
The level is rigged so all you have to do is watch, then hit "spacebar" to pause the level. Using WASD you can jump onto the stack of rods and you will see the error.
"R" resets the game, then try the same thing except collect the ball on the right before pressing space. no error!