ddh Posted July 12, 2016 Share Posted July 12, 2016 hi all i am new to phaser can any one tell my what that line in examples/games/defender lazer = lazers.getFirstDead(true, player.x + 24 * player.scale.x, player.y + 8, 'lazer'); what that concept and where in docs i found description Link to comment Share on other sites More sharing options...
XekeDeath Posted July 12, 2016 Share Posted July 12, 2016 http://phaser.io/docs/2.6.1/Phaser.Group.html#getFirstDead lazers is a Phaser.Group. getFirstDead will get the first child of the group that is considered dead... ie: The .alive property is false... Adding the extra parameters will create a new child sprite if it cannot find a dead one... Link to comment Share on other sites More sharing options...
ddh Posted July 16, 2016 Author Share Posted July 16, 2016 On 7/13/2016 at 0:27 AM, XekeDeath said: thanks for XekeDeath useful replay Link to comment Share on other sites More sharing options...
Recommended Posts