Android - Screen goes into sleep.

JamesBoucherJamesBoucher Member Posts: 433
edited November -1 in Working with GS (Mac)
In the middle of my game the screen goes into sleep mode. This is because you don't need to touch the screen to play the game. What can I do to make Android not go into screen sleep mode?

Comments

  • ericzingelerericzingeler Member Posts: 334
    Anymore info on a fix for this? Our app doesn't require touch during game play. What can be done about this?
  • ChakkuChakku Member Posts: 1,513
    @eezing

    Make some kind of reason to touch. Maybe find the time it takes for the screen to dim, and then create an actor covering the scene and create a rule that says when touch is pressed, timer: after x seconds, spawn "continue actor" and have the continue actor some display text that says "your screen will go off soon, so tap me to continue playing", or something along those lines.

    Or you could tell the person in the app description and the app itself to turn off auto-dim in settings.

    Hope this helps
    Chakku
  • ericzingelerericzingeler Member Posts: 334
    @eezing

    Make some kind of reason to touch. Maybe find the time it takes for the screen to dim, and then create an actor covering the scene and create a rule that says when touch is pressed, timer: after x seconds, spawn "continue actor" and have the continue actor some display text that says "your screen will go off soon, so tap me to continue playing", or something along those lines.

    Or you could tell the person in the app description and the app itself to turn off auto-dim in settings.

    Hope this helps
    Chakku

    Yea, looks like this is my only option at this point. Problem is, adding a touch action will change the core gameplay of the app. Looks like I'll have to include it in the app description.

    GS, from what I've found on the interwebs, throwing in the code to keep the screen awake is pretty trivial. It would be great if the GS team could make this a priority in future releases.
  • ChakkuChakku Member Posts: 1,513
    @eezing

    Just have them turn off automatic screen-off in settings.

    Besides, most people know to tap the screen when it starts to dim ;)

    This is a good alternative until they fix this.

    Chakku
  • bryanearlbryanearl Wasilla, AlaskaMember, PRO Posts: 49
    A year later... Any word on this yet? I have a similar problem with my screen going to sleep. With my game, that would not normally be a problem except when you go back into the game, many actors (usually displayed text) lose their transparency/image and turn solid black. Extremely annoying to say the least, and I don't know if that is really acceptable to release like that considering if the screen goes to sleep you pretty much have to exit and start the game over to get the images back.

    Has anyone had similar problem with the alpha getting messed up like that after returning from sleep on android? I may just start another thread for the alpha issue though.
  • RedRoboRedRobo Member, PRO Posts: 682

    I too am having this problem. My app has a section where you need to just watch the screen for about 30 seconds, this is long enough for most devices to go into power save mode. An option to disable screensaver should be a high priority fix as it makes apps look very unprofessional.

  • fjimenezfjimenez Member, PRO Posts: 15

    I have the same issue on Android, isn't there any function yet we can use to prevent the screen going into sleep??

  • 68kStudios68kStudios Member Posts: 219

    3 years later...and still nothing?
    Please, fix this issue.

  • BlackCloakGSBlackCloakGS Member, PRO Posts: 2,250

    I would suggest submitting a feature request in our public bug database

  • mathusalemrexmathusalemrex Member, PRO Posts: 116

    Rudiculous oversight, basic functions still to be integrated, im trying to do a sleep aid app, switches off after 30s needs to be on all night!

  • vafurlogivafurlogi Member Posts: 203
    edited September 2015

    @BlackCloakGS said:
    I would suggest submitting a feature request in our public bug database

    It's been there for a while. It's marked as bug 862 (http://bugs.gamesalad.com/show_bug.cgi?id=862)

    It was marked as a feature request for a long time but then changed to a bug for reason:
    "Removed feature request from the title. I consider this a bug as well." - Confirmed.

    Games that use the accelerometer or have a short cut scene (how short depends on the devices settings) won't work correctly on Android. I have no idea how big of a fix this is but I hope someone gives this some attention. I feel Android keeps getting left out and users keep having to find new ways to work around the random mess. I'm about to publish a game I've worked on for almost a year. It's a paid job and one aspect of the game uses the accelerometer. The problems I'm dealing with right now on Android, that I don't have to worry about on IOS are:

    -Devices sleeps when inactive for X amount (so remake for accelerometer part).
    -Game freezes when using a splash screen.
    - First scene won't detect the screen display size so a blank scene has to be put at the beginning so things are displayed correctly.
    - Random crashes (Android 5?)
    - Rules that run at the beginng of a scene are often ignored.
    - If the "low battery" pop up displays, games freezes or gets mangled.
    - Phone calls and game freezes or gets mangled (or plays game music during the call).
    - All graphic have to be scaled down to 50% to fit game in 50mb limit (and no room for additions later)
    - Changing scenes and pressing the screen while loading can trigger events on next scene
    - Big, white "Loading" is sometimes displayed when the first scene is loading.
    - The engine drains battery at an amazing rate (keep awake after game exit).

    Those are just the ones I'm dealing with right now. I know you guys are in super bug-squashing mode so I hope some of these are on your to-do list.

Sign In or Register to comment.