Jump to content

Buttons not working on Safari/iOS


Recommended Posts

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


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...