zelcard Posted May 13, 2018 Share Posted May 13, 2018 Hello, I was wondering if there is any other way to instantiate sprites in an arc or circle form (like on the image below), any other then placing them one by one on predetermend cooridantes so they form an arc or circle. Thanks! Link to comment Share on other sites More sharing options...
Roofpl Posted May 14, 2018 Share Posted May 14, 2018 I'm not in a position to test anything in Phaser but could you do something in JavaScript to find the points, like in this example? https://stackoverflow.com/questions/13608186/trying-to-plot-coordinates-around-the-edge-of-a-circle zelcard 1 Link to comment Share on other sites More sharing options...
samme Posted May 14, 2018 Share Posted May 14, 2018 https://codepen.io/samme/pen/VMdvzv zelcard 1 Link to comment Share on other sites More sharing options...
zelcard Posted May 14, 2018 Author Share Posted May 14, 2018 Amazing! Thank you so much, both of you! Link to comment Share on other sites More sharing options...
samme Posted May 14, 2018 Share Posted May 14, 2018 Phaser.Circle#sample Link to comment Share on other sites More sharing options...
Recommended Posts