How do I stop android screen from dimming during gameplay

0 favourites
  • 8 posts
From the Asset Store
11 fun gameplay beats created with vintage synth sounds
  • I tried using cranberrygame's power management plugin using something like:

    Ball - is on screen > CordovaPowerManagement - Acquire

    Ball - is NOT on screen > CordovaPowerManagement - Release

    But the screen still dims.

    Anyone know how to stop the screen from dimming during gameplay when there is no touch involved during gameplay?

  • Does the browser > focus action work? And let it go off now and then so if doesn't dim the screen.

    Never had that problem before as my mobile games always require touch inputs but I guess you are using gyro or something as controls?

  • Does the browser > focus action work? And let it go off now and then so if doesn't dim the screen.

    Never had that problem before as my mobile games always require touch inputs but I guess you are using gyro or something as controls?

    Yeah, there's no touch during gameplay, only need tilt.

    I am using cranberrygame plugin. It only has acquire an release. Not working.

  • I would just include an is in touch condition to the game.

    If you set it to set timescale to zero when not in touch you have an effective pause feature.

  • I would just include an is in touch condition to the game.

    If you set it to set timescale to zero when not in touch you have an effective pause feature.

    Thanks for the reply, but how do i add an "is in touch" if the user does not have to touch the screen during gameplay?

    Not including the Menu, Options and Store, and only during the actual playing of the game, the user only has to roll a ball around the screen. Sometimes it last a few seconds, sometimes minutes.

  • > Does the browser > focus action work? And let it go off now and then so if doesn't dim the screen.

    >

    > Never had that problem before as my mobile games always require touch inputs but I guess you are using gyro or something as controls?

    >

    Yeah, there's no touch during gameplay, only need tilt.

    I am using cranberrygame plugin. It only has acquire an release. Not working.

    I see, but try adding the browser plugin as well and try the focus action. No need changing anything else just use it for the focus action.

  • >

    > > Does the browser > focus action work? And let it go off now and then so if doesn't dim the screen.

    > >

    > > Never had that problem before as my mobile games always require touch inputs but I guess you are using gyro or something as controls?

    > >

    >

    > Yeah, there's no touch during gameplay, only need tilt.

    >

    > I am using cranberrygame plugin. It only has acquire an release. Not working.

    >

    I see, but try adding the browser plugin as well and try the focus action. No need changing anything else just use it for the focus action.

    Okay. i'll try that and update soon.

    Thanks for the replies.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > I would just include an is in touch condition to the game.

    > If you set it to set timescale to zero when not in touch you have an effective pause feature.

    >

    Thanks for the reply, but how do i add an "is in touch" if the user does not have to touch the screen during gameplay?

    Not including the Menu, Options and Store, and only during the actual playing of the game, the user only has to roll a ball around the screen. Sometimes it last a few seconds, sometimes minutes.

    Im imagining in landscape mode the user placing both thumbs on the bottom corners of the screen.

    Like a pinch.

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