Jump to content

Error initializing p2 Physics body


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)

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

but then i get this: (attachment)


Link to comment
Share on other sites


  • Recently Browsing   0 members

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