fran Posted January 27, 2015 Share Posted January 27, 2015 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 constructorI 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 Thanks. ----------------------EDIT---------------------- I was the culcript, one of my variables was named p2. Fixed renaming the variable name. Link to comment Share on other sites More sharing options...
Recommended Posts