Jump to content

Using Phaser.Point


Recommended Posts

Hi, I would like to use Phaser points (var p1 = new Phaser.Point(200, 300) ;), however if I declare the variable before starting the p2 physics I get:

TypeError: p2.SAPBroadphase is not a constructor

I can declare them after starting the physics (for instance at the create fucntion), but I can't access them from another function (say the update fucntion).


How can I solve this? I'm using 2.2.2








I was the culcript, one of my variables was named p2. Fixed renaming the variable name.

Link to comment
Share on other sites


  • Recently Browsing   0 members

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