How do I dectect android buttons and go fullscreen

0 favourites
  • 4 posts
From the Asset Store
Go kart
$7 USD
*************** Go kart game sprite ****************
  • Hello,

    I'm still a newbie at construct 2 and I'm making my first game. Its a simple pong game for android devices.

    I use the Letterbox scale option for full screen and well there aren't any borders, but it does show the standard android controls. So it will have the three buttons for back, home and well as the bar at the top showing battery, time, network etc.

    Is there any method of hiding them to the background and allowing the game to take over the full screen?

    Also, is there a method for detecting when the user presses any of these buttons? e.g. when the user presses the back button, my game can prompt the user asking are they sure they want to exit? and maybe i can save the game state when they do.

    Ive searched the tutorials and forums for this and no one has mentioned these controls showing, only borders at the sides.

    I've also tried all the scaling options. Maybe there's an option in the intel XDK?

    Any Help would be appreciated!


  • Roadiek9

    Use the Browser plug-in

    Do the Browser->Request Fullscreen action to go fullscreen. Although if you use a wrapper - Crosswalk, CocoonJS, PhoneGap - it should handle fullscreen for you with the right settings.

    You can use Browser->On back button and Browser->On menu button conditions to check for the buttons being pressed

  • I must be doing something wrong.

    I've added the browser plugin, and requested fullscreen. I export it for android out of construct and use intel XDK and i select the build option crosswalk for android and still the android bars are showing through.

    I have to be missing something somewhere?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I found where i was going wrong. In the intel XDK, I had liked the full screen for android. Only just noticed the tabs for android - crosswalk android - ios - windows. i didn't click full screen under the 'crosswalk android' tab.

    It hides the bar at the top with the battery and time. but it doesn't hide the three buttons at the bottom. Although I'm a lot happier with that.

    Maybe someone can update this with how to hide the android navigation buttons?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)