So I noticed that you can still click on buttons that are outside the layout when the game is played from a browser such as Safari on iPhone. It seems strange that this is possible.
Is there a way to prevent this? I've got buttons that I position on and off screen when needed. I need to keep them somewhere right?
Now I think of it I could create and destroy them, but is there a way to prevent buttons from being clicked outside the layout?
It is normal because whenever you see the button, you can reach it.
Obviously that you could move it to X : 5000, Y : 5000 (far far away)
Or you can put a condition that you want to push that button in that case only.
Develop games in your browser. Powerful, performant & highly capable.
I just thought at first that the layout would restrict anything outside of it once running the game.
I'll try your suggestions.