playh5 Posted April 10, 2014 Share Posted April 10, 2014 Hi, may I know what is the work around to this issue in firefox. I'm using version 1.1.6. Thanks! Link to comment Share on other sites More sharing options...
Heppell08 Posted April 10, 2014 Share Posted April 10, 2014 can you iterate further? Link to comment Share on other sites More sharing options...
playh5 Posted April 10, 2014 Author Share Posted April 10, 2014 Hi Heppel. my game cannot be opened in Firefox browser and the consoles throws an error - Error: Phaser.Loader. Invalid XML given I have an animation made in flash with xml. Link to comment Share on other sites More sharing options...
adamyall Posted April 11, 2014 Share Posted April 11, 2014 Are you hosting these files on your machine? Or just trying to open a file from your drive? In other words, does the URL start with http or file? Link to comment Share on other sites More sharing options...
rich Posted April 11, 2014 Share Posted April 11, 2014 Make sure the XML file is in UTF8 format, not UTF16 or whatever weird format Flash exports it as. Firefox can't seem to handle that, so re-encode it with any decent text editor. Link to comment Share on other sites More sharing options...
playh5 Posted April 13, 2014 Author Share Posted April 13, 2014 Thanks Rich! But its the same problem. Anyway I used spritesheet instead. I load the spritesheet and add player animation like this.playerAnimation.animations.add('player_stance',[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]);playerAnimation.animations.add('player_box',[24,25,26]);The animation works fine in desktop browsers (chrome and firefox). in mobile browsers I tested the animation on chrome and opera but I see black image on mobile browser firefox. Any thoughts why the animation or sprite appears black on firefox browser? In mobile chrome In mobile firefox Link to comment Share on other sites More sharing options...
rich Posted April 14, 2014 Share Posted April 14, 2014 I would guess your sprite sheet is too large, so couldn't render (hence the black area). Link to comment Share on other sites More sharing options...
playh5 Posted April 15, 2014 Author Share Posted April 15, 2014 Hi, yes I figured it out too. Also I figured that motion tweened movieclips inside movieclips rendered black in firefox (its happening to me I don't know with others). So what I did is instead of motion tween I converted to frame by frame animation then convert the movieclip to bitmap then break apart. This process although needs a bit of work, works for me. I hope it could help others who experience the same problem with firefox. What problem left is I made a splash screen for a sponsor, because of big sprite that covers the whole screen became black again. So I don't know what to say when I delivered the game to the sponsor. My game is finished. Thanks Rich and to the html5gamedev community. I'll update this and post the link when I uploaded the game to my website. Thanks once again! Link to comment Share on other sites More sharing options...
playh5 Posted April 21, 2014 Author Share Posted April 21, 2014 You can play the game here Link to comment Share on other sites More sharing options...
jpdev Posted April 21, 2014 Share Posted April 21, 2014 I just beat the rabbit.. .. but don't you think this might inspire emotional conflict in the children learning math with it?(You reward for getting an equation right is smacking a little fluffy pink rabbit in the head. ) Link to comment Share on other sites More sharing options...
plicatibu Posted April 21, 2014 Share Posted April 21, 2014 I second jpdev. To hit a cute rabbit is not a good idea for a child's game. Link to comment Share on other sites More sharing options...
plicatibu Posted April 21, 2014 Share Posted April 21, 2014 rich, based on your experience, which is the highest spritesheet that's safe for us to use? I would guess your sprite sheet is too large, so couldn't render (hence the black area). Link to comment Share on other sites More sharing options...
playh5 Posted April 22, 2014 Author Share Posted April 22, 2014 I just beat the rabbit.. .. but don't you think this might inspire emotional conflict in the children learning math with it?(You reward for getting an equation right is smacking a little fluffy pink rabbit in the head. )I'm not sure. But the fast fps maybe wouldn't really notice boxing the rabbit. Link to comment Share on other sites More sharing options...
Flake Posted May 7, 2015 Share Posted May 7, 2015 Make sure the XML file is in UTF8 format, not UTF16 or whatever weird format Flash exports it as. Firefox can't seem to handle that, so re-encode it with any decent text editor. Thanks, solved my Issue. FYI: The Starling Atlas example xml is encoded with UTF-16, and doesn't work in Firefox. Link to comment Share on other sites More sharing options...
Recommended Posts