Tom Atom Posted December 21, 2015 Share Posted December 21, 2015 Hi, just curious if anyone knows, why there is set() method and setTo() method for Phaser.Point. Both do the same (exactly the same source). Is it because of some backward compatibility reasons? If yes, will any of these two be deprecated in future? If yes, which one? WombatTurkey 1 Link to comment Share on other sites More sharing options...
harry830622 Posted January 13, 2016 Share Posted January 13, 2016 For less typo, I use set(). However, I'm curious too! If anyone knows? Link to comment Share on other sites More sharing options...
noway Posted April 27, 2016 Share Posted April 27, 2016 bump. Link to comment Share on other sites More sharing options...
in mono Posted April 28, 2016 Share Posted April 28, 2016 Just did some digging around. Turns out that .set() is a PIXI method, .setTo() is a Phaser one and because Phaser.Point extends PIXI.Point, they're both available in a Phaser.Point instance. Link to comment Share on other sites More sharing options...
Recommended Posts