chatmurai / citrus-engine

Automatically exported from code.google.com/p/citrus-engine
0 stars 0 forks source link

Error while changing state #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Go from a first state to the game state, where you load your level.
2. Now from there go back to the first or another state.
3. Error is thrown, something with box2D when leaving the game state.

What is the expected output? What do you see instead?
-> Expected: Just a change of the state
-> Instead: Error gets thrown, after ignoring still goes to the desired state.

What version of the product are you using? On what operating system?
-> Citrus engine v2

Original issue reported on code.google.com by wauters....@gmail.com on 2 Apr 2012 at 7:12

Attachments:

GoogleCodeExporter commented 8 years ago
Ah! I found a solution:
Add the following listener to the Constructor of the Box2DDebugArt class.
Location: com.citrusengine.view.spriteview.Box2DDebugArt.as

addEventListener(Event.REMOVED_FROM_STAGE, destroy);

Would solve this issue. It did here.

Original comment by wauters....@gmail.com on 2 Apr 2012 at 8:39