EDIT: I put physics.stop() before the swap and now its an entirely new set of problems; sometimes physics doesn’t initiate correctly in the next room, causing all sorts of errors with the simulator.
I’m having a problem with the director class. It doesn’t produce any sort of code errors to show from the console, however it can make for some very odd effects in the game.
When I either restart a level or switch a level through director, the physics bodies seem to be (I assume) overlapping for a split second with the newly created scene, causing them to bump any others that happen to be at a position. For example, if i restart a level that has a stationary ball, or skip to a new level with a ball in the same position, the new one will be knocked slightly to either side and start rolling.
I have a hazard that pops up a “level failed” screen when your ball collides with it, and upon skipping a level, if there is a hazard in that position in the next level, the first play of that level instantly says failed. There is a similar problem with the next levels goal being in the same position.
I’ve tried deactivating certain bodies before switching levels, however it had no affect. Can anyone help me out here?
Thanks! [import]uid: 80536 topic_id: 16478 reply_id: 316478[/import]