turnA Posted October 25, 2013 Share Posted October 25, 2013 Hi there, I have additional question about forceOrientation and Group index mechanism:1. How do we use forceOrientation correctly in the game? I'm using forcePortrait inside the game but I don't see anything different when rotating my device.2. I'm currently using Group to composite a game component (a puzzle tile with a separate sprite on top of it), but I seem can't order the child index of these Groups. My current Group creation: var tiles = this.game.add.group();tiles.create(0,0, 'tile_bg');tiles.create(0,0, 'tile_char'); My usual way for index sorting: this.game.world.group.remove(tiles);this.game.world.group.addAt(tiles, 1); But I encounter error, Cannot read property 'onRemovedFromGroup' of undefined.Any help will be appreciated. Thanks. Link to comment Share on other sites More sharing options...
rich Posted October 25, 2013 Share Posted October 25, 2013 Which version are you using? (master or dev branch). Link to comment Share on other sites More sharing options...
turnA Posted October 29, 2013 Author Share Posted October 29, 2013 I'm moving to the latest master version (1.1), but now I can't found the global Group properties (previously accessible from this.game.world.group). Where can I access it now?I also want try to find the container of my custom Group, but it seem I can't get their .group or .parent properties, any information regarding group and their container? Link to comment Share on other sites More sharing options...
CrazySam Posted October 29, 2013 Share Posted October 29, 2013 Force orientation wasn't working for me as well, I'm using the dev branch. Link to comment Share on other sites More sharing options...
Recommended Posts