1 decade ago by tarrent
Hi, I'd like to ask if ig.game.sortEntitiesDeferred() has browser compatibility issues because a sample game of mine using this works well in Mozilla Firefox but doesn't in Chrome.
http://tarrent.webs.com/html5/index.html
I'm using ig.game.sortEntitiesDeferred() to sort out entities specially the square characters. Without sortEntitiesDeferred(), they would spill out the top golden frame when going up for a spin. The game works well in Chrome if I remove this, but the characters spill out of the top frame.
I call ig.game.sortEntitiesDeferred() after the characters have been finalized in place. To be exact, here are the entities' zIndices:
- red background = 3
- violet background = 1
- buttons = 3
- blurred spinning animation = none
- square characters = 2
When would be the best time to use ig.game.sortEntitiesDeferred()? Do this really mess up in chrome? Thanks.
http://tarrent.webs.com/html5/index.html
I'm using ig.game.sortEntitiesDeferred() to sort out entities specially the square characters. Without sortEntitiesDeferred(), they would spill out the top golden frame when going up for a spin. The game works well in Chrome if I remove this, but the characters spill out of the top frame.
I call ig.game.sortEntitiesDeferred() after the characters have been finalized in place. To be exact, here are the entities' zIndices:
- red background = 3
- violet background = 1
- buttons = 3
- blurred spinning animation = none
- square characters = 2
When would be the best time to use ig.game.sortEntitiesDeferred()? Do this really mess up in chrome? Thanks.