0 Favourites

How do I stop android screen from dimming during gameplay

  • 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.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • >

    > > 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.

  • > 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)
Similar Topics Posts Views Last Post
Unread sticky
763 305,711
asikanddestroy's avatar
asikanddestroy
Unread hot topic
0 Favourites
New Android Export Experiences
494 67,280
jabk's avatar
jabk
Unread hot topic
144 12,140
andreyin's avatar
andreyin