Sprite flickers after replace scene (Box2D issue)


#1

Hi all,

I have two scenes. The first one is where the game exists and the second one simply has a label saying “You Lose” and after 3 seconds it replaces scene and goes back to the game scene. But the second time the game scene is called the sprite appears to be flickering and “skipping a beat” if that makes sense. Any help would be great.

I am also using a Box2D webworker to carry out the physics.

Cheers


#2

It seems it is an issue with the Box2D webworker. I just need to terminate the webworker once the screen is replaced. Any suggestions?