scofield Posted April 26, 2016 Share Posted April 26, 2016 Hello. Is it possible to somehow center sprites at the center of the canvas using Phaser API? Example attached. Link to comment Share on other sites More sharing options...
in mono Posted April 26, 2016 Share Posted April 26, 2016 As far as I know, this can't happen automatically. You can, however, do it manually - you can add all the sprites to a group (by offsetting each one by a single sprite width * 1.25 or something like that), then position the whole group in the centre. And since the group doesn't have an anchor like a sprite does, you may want to offset it by half width and half height. Link to comment Share on other sites More sharing options...
scofield Posted April 26, 2016 Author Share Posted April 26, 2016 Ok, It's impossible to make this with Group container? Link to comment Share on other sites More sharing options...
in mono Posted April 26, 2016 Share Posted April 26, 2016 Didn't I mention exactly that? Link to comment Share on other sites More sharing options...
scofield Posted April 27, 2016 Author Share Posted April 27, 2016 Oops Link to comment Share on other sites More sharing options...
Recommended Posts