Search the Community
Showing results for tags 'forceOrientation'.
-
What I expect from forceOrientation(false, true, 'orientation') is nice orientation image in landscape. What I got is slightly different. Vertically distorted in chrome and scaled down image everywhere else. Is there any way to get around this?
- 1 reply
-
- orientation
- rotate
-
(and 1 more)
Tagged with:
-
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.