I have placed the full screen button.
It works but not all the time.
I use touch full screen - request full screen - strech
but it's not working all the time
What to do?
This is what happens now: the game checks that "fullscreen" boolean is false and sets "fullscreen" to true. Then it immediately checks second set of conditions and since "fullscreen" is now true - it cancels fullscreen.
So instead of having 2 separate events, you should make it into one "on tap" with subevents: "is fullscreen: do this", "else: do that"
Thank you
What you suggested works great on desktop not on mobile
Hmm, maybe "on tap" works differently on mobile, idk, I never use it, maybe try "on touched". And if you're testing on iOS - fullscreen doesn't work there in a browser.
Develop games in your browser. Powerful, performant & highly capable.
thank you for that
since there are more objects on the screen except for the "full screen" button,
picking on tap will not work