how to go full screen on mobile

0 favourites
  • 4 posts
From the Asset Store
a ready made template of Mobile Advert, Google Play and Mobile IAP Plugin,
  • Hi

    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?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • First thing, don't use the tap gesture, it is unreliable. Use on tap instead.

    Secondly, for a toggle, you should use sub events under a single trigger, and use the else condition. Otherwise the second event will run at the same time as the first event. The event sheet runs top to bottom, so the first event results in the condition for the second to be true and the second event cancels out the first.

  • Thank you for that but the problem is not in the code

    because it's working great on desktop

    the problem is on mobile

    Is there a way to put a script that will recognize that we are for example on android

    and will go full screen?

  • The built-in PlatformInfo plugin has conditions and expressions to recognize the platform. "Request fullscreen" only works when player interacts with the screen, so you can add something like this:

    + Touch: On any touch start

    ----+ PlatformInfo: Is on Android

    -----> Browser: Request fullscreen

Jump to:
Order by:
Duplicate Topics
Posts
Views
Last Post
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)