RedPanduzer Posted February 14, 2017 Share Posted February 14, 2017 Calling removeChirldren on sprite causes reference error because begin is not defined. Function gets beginIndex as parameter but never defines begin variable. Fix is as simple as changing begin to beginIndex. There is open issue on this. My Phaser version is 2.6.2https://github.com/photonstorm/phaser/issues/2929?_pjax=%23js-repo-pjax-container Link to comment Share on other sites More sharing options...
rich Posted February 14, 2017 Share Posted February 14, 2017 Yes, this was fixed in Phaser 2.7 (first CE release) last year. You'll need to either use that version, or fork and apply the patch locally if you need to use 2.6.2 instead. Link to comment Share on other sites More sharing options...
RedPanduzer Posted February 14, 2017 Author Share Posted February 14, 2017 Thanks. I was aware of CE-edition but just took the newest version from Phaser download page. As a side note it might make things less confusing if there would be a link to CE-edition on that download page too. For me, it doesn't really matter as I'm running custom version anyway. Link to comment Share on other sites More sharing options...
Recommended Posts