I need to create a setting to toggle full screen, using the F key.
sadly that is not possible if your game is on a website because the google already has a fullscreen system you just need the fullscreen on key and the google orignal escape key is already there by default
The above post is incorrect.
You can absolutely make an html5 hosted game go fullscreen. The player does have to interact with the game first (click anywhere in the game scene)
You’d then just have an event that is “F key is pressed” and “trigger once” for conditions, and the toggle fullscreen action.
Keep in mind if you are hosting on Itch.io you can just outright enable a fullscreen button in your itchio project settings.
2 Likes
Yes you are right that post is wrong