Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

Error initializing p2 Physics body


valueerror
 Share

Recommended Posts

i try to add a player to my phaser-test-game like this to make it live in a p2 world and not the default arcade world.  (.ARCADE or .NINJA works as expected)

game.physics.startSystem(Phaser.Physics.P2);
player = game.add.sprite(250, game.world.height - 250, 'mario'); game.physics.enable(player, Phaser.Physics.P2 );

but then i get this: (attachment)

post-6912-0-83532200-1394182314.jpg

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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