power2b Posted November 14, 2017 Share Posted November 14, 2017 Hello, I am a newbie and trying to make a game like this one. I've configured pretty much everything just this issue is impossible to make for me. How do I generate those trees from bottom to the top? I would be really happy if someone could help me. Thank you Link to comment Share on other sites More sharing options...
samme Posted November 14, 2017 Share Posted November 14, 2017 It could be something like var trees = this.add.group(); // or: physicsGroup() trees.createMultiple(12, 'tree', 0, true); trees.scatter(); // in Phaser CE trees.sort('y', Phaser.Group.SORT_ASCENDING); Link to comment Share on other sites More sharing options...
power2b Posted November 14, 2017 Author Share Posted November 14, 2017 Thank you samme. How about adding physics to that? So they move up. Link to comment Share on other sites More sharing options...
samme Posted November 14, 2017 Share Posted November 14, 2017 Probably you would do something like examples/v2/camera/basic-follow. Link to comment Share on other sites More sharing options...
Recommended Posts