Jump to content

how to show polygon sprite ( not in debug mode )


waichang
 Share

Recommended Posts

Hello every one. I want to add polygon sprites dynamically like this example: 

http://schteppe.github.io/p2.js/demos/concave.html

 

This is the example of adding plygon in Phaser https://phaser.io/examples/v2/p2-physics/load-polygon-3

 

but it is in debug mode. if I change the code in line 19 to game.physics.p2.enable(contra, false); 

 

I can't see the sprite. My question is how to display these sprites even I change the debug mode to false

 

thanks...

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...