Tácio Sousa Posted May 6, 2013 Share Posted May 6, 2013 I'm here again with new problems! o/ I make this simple test game (http://eukito.com.br/teste/phaser) to check the input on mobile only clicking on the screen, and open him in one iPad 1 and another iPad 4 (both with safari browser).In the iPad 4 the game is running perfect (except when turning around the iPad, when you do this, the game disappear), but in iPad 1 the game doesn't run, and throws my old friend error : "undefined is not a function". Can anyone help me with this 2 problems? Link to comment Share on other sites More sharing options...
rich Posted May 6, 2013 Share Posted May 6, 2013 I suspect the error is coming from the audio. I'm not at home right now (I'm not even on the same continent!) so you'll have to leave this one with me to test on my return. Try this though - does even a really simple test, with nothing but a single sprite, work? Link to comment Share on other sites More sharing options...
Tácio Sousa Posted May 6, 2013 Author Share Posted May 6, 2013 Same problem Rich, i put only the sprite, update in web and the javascript error continues : undefined, TypeError : setting a property that has only a getter. I'll wait for you, there's no problem. (Can you help me in the other post too? =x) Link to comment Share on other sites More sharing options...
zimbres Posted May 7, 2013 Share Posted May 7, 2013 Hum, I`m curious about that. Link to comment Share on other sites More sharing options...
rich Posted May 12, 2013 Share Posted May 12, 2013 Just to confirm that this is now fixed in 0.9.6. If you want to resolve it in the meantime, edit World.ts and remove the line in the constructor that set this._game.camera = this.current. I've run a few of the tests on iPad 1 and they are running fine now after this fix. Link to comment Share on other sites More sharing options...
Tácio Sousa Posted May 13, 2013 Author Share Posted May 13, 2013 But i build my project in JS, using only the phaser.js in build, i really have to change this in World.ts? Link to comment Share on other sites More sharing options...
rich Posted May 13, 2013 Share Posted May 13, 2013 Find the corresponding line in phaser.js and delete it. The code will be the same, will just be in a different place. Link to comment Share on other sites More sharing options...
Tácio Sousa Posted May 13, 2013 Author Share Posted May 13, 2013 Same problem Rich, i change the code as you said, and the Safari console throws same problem : TypeError : 'undefined' is not a function. Link to comment Share on other sites More sharing options...
rich Posted May 13, 2013 Share Posted May 13, 2013 Wait until I push 0.9.6 out, it's working fine on iPad 1 now (all tests). Or grab it from the github branch if you like, but personally I'd wait as I plan to release it either later this week or early next week. Link to comment Share on other sites More sharing options...
Tácio Sousa Posted May 13, 2013 Author Share Posted May 13, 2013 No problem, i'll wait the release, i'm still waiting you fix this problem and the "object.input" feature, so don't worry . Link to comment Share on other sites More sharing options...
Recommended Posts