User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: How can I stop the phone back-light from turning off during a game?

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Simflare's Avatar
    Join Date
    Oct 2013
    Location
    Australia
    Posts
    377
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How can I stop the phone back-light from turning off during a game?

    Hi guys

    I'm making a game for Android and iOS. Right now I'm focusing on testing with a Samsung S3, and I've noticed that often the backlight will turn off after a while, which makes it really hard to see the game. So, 2 questions:

    Why does the back light turn off?

    Is there a way to make sure the back light stays on?

    Thanks in advance!
    Simflare

    Edit Just in case it helps, my game uses mouse clicks as touch controls, it's just one tap to jump, that's it, that's the controls.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleXNA Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    rndpro's Avatar
    Join Date
    Sep 2012
    Location
    England, UK
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Simflare,

    I may not be of any help but I don't understand why this is happening for you. For Android one of my devices I test my games on is a Galaxy S3 Mini which works perfectly and this does not happen. Maybe this is a setting on the phone or there could be a setting within the Android export options for your game that prevent this when used?

    Thanks
    James

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Simflare's Avatar
    Join Date
    Oct 2013
    Location
    Australia
    Posts
    377
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't think it's my particular phone, it's happened to me on other phones too. There may be a setting - but I feel there's probably also a way to turn it off during the game.

    My assumption is that the screen light is meant to do that when no one does anything, like a pre-empt for a screen saver / turning off the screen, except we are doing something. So I believe there should be a way to keep it on.

    Just to clarify, my game is controlled via mouse clicks as the touch controls.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    May 2012
    Location
    NSW, Australia
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I know with the android object extension you can prevent the device from going to sleep, helpful if your game uses accelerometers for movement and doesn't have any actual input.
    Is your brightness setting set to auto?

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Simflare's Avatar
    Join Date
    Oct 2013
    Location
    Australia
    Posts
    377
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hm, that does sound useful.

    Yeah, the brightness setting is set to auto.

  6. #6
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,826
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)
    Yes use the Android object and you might also need to check the wake lock permission in the Application Properties - Permissions area
    I'll have to do some testing to see if that permission is needed or not but I suspect it is.

    I did this in a game (with permission checked and the object with the action set) and it worked great.
    Kept phone from going dim when user isn't touching the screen.

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Simflare's Avatar
    Join Date
    Oct 2013
    Location
    Australia
    Posts
    377
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Jeff, that sounds like a good suggestion, I'll give that a try.

    What does the Android object do? Do I have to do anything with it or just put it on the stage? I've never used it before - I've actually made the entire game workable on my Samsung without it, I don't understand what the object does?

    I checked the wake_lock permission, I will see how that goes! Thanks

  8. #8
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,146
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    the android object gives you a bit of extra control with extra actions/conditions related to Android.

    Eg.

    condition
    Start Of Frame -

    Action (android object)
    start sleep prevention

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Simflare's Avatar
    Join Date
    Oct 2013
    Location
    Australia
    Posts
    377
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I just found out the best way to stop the phone backlight from turning off, thanks to macca02!

    With the sleep prevention you need the Android Object in the frame you want the sleep prevention.
    Start of frame: Android Object --> Start sleep prevention.

    And the permission "Wake Lock" checked in the properties (unsure if this is required i just assumed it was).

  10. #10
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    7,376
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    you need that permission to sleep feature to work.
    Regards,


    Fernando Vivolo

    ... new things are coming ...

Page 1 of 2 1 2 LastLast

Similar Threads

  1. How do you get your game on your phone sideways?
    By MitchellMonhemius in forum Android Export Module Version 2.0
    Replies: 2
    Last Post: 20th September 2013, 08:10 PM
  2. Window Phone + Game Trials
    By leuvsion in forum XNA Export Module Version 2.0
    Replies: 11
    Last Post: 18th April 2013, 03:35 PM
  3. Windows Phone 7 Back button issue (again)
    By Keith in forum XNA Export Module Version 2.0
    Replies: 58
    Last Post: 4th December 2012, 01:31 PM
  4. My first test game for mobile phone
    By Wingamez in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 21st April 2009, 01:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •