Politybuilder Posted July 5, 2017 Share Posted July 5, 2017 Using Phaser 2.6.2 with Safari on an iPhone, game loads up fine and seems to be running ok but can't get any response out of the buttons. Link to comment Share on other sites More sharing options...
Legomite Posted July 6, 2017 Share Posted July 6, 2017 Have you set inputEnabled to true? sprite.inputEnabled = true; Link to comment Share on other sites More sharing options...
Politybuilder Posted July 6, 2017 Author Share Posted July 6, 2017 Yes. It works with Chrome, but not with Safari. Am going to try on devices other than an iPhone tomorrow, but it looks like it might be Safari. Link to comment Share on other sites More sharing options...
Legomite Posted July 6, 2017 Share Posted July 6, 2017 Do you have an examples of the code you're using to make the buttons? Link to comment Share on other sites More sharing options...
Politybuilder Posted July 7, 2017 Author Share Posted July 7, 2017 Aargh! I have just discovered that I am a complete liar and have NOT used sprite.inputEnabled = true at all. However, I tried it and it still doesn't work. Besides, if that was the problem, surely it would be an issue across browsers rather than just with Safari? Anyway, button code looks like this: startButton = game.add.button(300, 300, 'sprites', start, this, 4, 5, 6); startButton.setFrames(4, 5, 6); Where 'sprites' is a spritesheet with all the different button images on it and start is the function to be run. Basically NOTHING is happening when I tap on the button - no image change, no function call - nothing. Link to comment Share on other sites More sharing options...
Politybuilder Posted July 8, 2017 Author Share Posted July 8, 2017 I figured it out. The page that was being loaded was not the page that I thought was being loaded. The page that was being loaded was using Phser version 2.2.2. When I changed it to 2.6.2 everything worked fine. Thanks for your help though! Link to comment Share on other sites More sharing options...
Recommended Posts