How do I keep screen from dimming (crosswalk)

Get help using Construct 2

Post » Mon Apr 14, 2014 12:59 am

I am trying to use crosswalk/Intel XDK to export a game to Android. I cannot find an option to prevent the screen from dimming when the game is running. This permission seems to be added automatically for Windows Phone, Windows 8, and Android (through CocoonJS) as the screen does not dim when I try those options. I would prefer to use Crosswalk to CocoonJS but I cannot seem to find this option. Anyone know where I should look?

Thanks.
B
3
Posts: 6
Reputation: 187

Post » Mon Apr 14, 2014 1:02 am

Look for the permissions in the api, the app must be allowed to change display settings locally. I dont think this is auto-done at the moment.
B
15
S
3
G
5
Posts: 396
Reputation: 4,977

Post » Mon Apr 14, 2014 2:35 am

"Look for permissions in the api"...

The problem is I don't know where to look. The list of permissions I can request in the Intel XDK doesn't include this one. I've looked through the javascript in the Intel XDK and can't find a list of permissions to edit manually (plus I doubt that's the best solution even if it was there). Does anyone know where I should look?

Thanks.
B
3
Posts: 6
Reputation: 187

Post » Mon Apr 14, 2014 3:16 am

Well, at first step at this moment i would guess to check:
did you allow the base android <-> developer kit to access this feature (at the phone)?

if it works, try exporting the project on other api's to check if it works there with same rules.

Or Consider checking a similer project on crosswalk/Intel XDK which made it; before going on this thread.

rgds
B
15
S
3
G
5
Posts: 396
Reputation: 4,977

Post » Mon Apr 14, 2014 4:13 am

Let me try rephrasing the question:

I am looking for a way to enable a game published through Construct 2 and Crosswalk to prevent the screen from dimming. I'm assuming there is probably a permission somewhere in the process that I need to check in order to do this. Since this is clearly a desirable feature in any game I assume other people have already found this. If anyone knows the answer off the top of their head, please let me know which of the following it is:

A) There is a way to request such permission somewhere in the Construct 2 project. This seems unlikely since there is no reason for it to not be "on" by default in a game engine, but I'm listing the possibility for completions sake.

B) There is an option to request this permission somewhere in the Intel XDK that I missed.

C) There is a way to manually edit the code within the Intel XDK to accomplish this that I missed. This one seems unlikely.

D) There is a way to manually enable this while uploading to the Google Play store that I missed.

E) There is no way. Crosswalk publishing through Construct 2 currently lacks this feature.

F) There is a way, but it's not listed.

Again, if you don't know the answer, just ignore this thread. If you do, it would be appreciated.

Thanks.
B
3
Posts: 6
Reputation: 187

Post » Mon Apr 14, 2014 11:28 am

This question was asked on Saturday in the Crosswalk Thread by KFC. I think it's better to keep all Crosswalk issues and fixes in one thread...
I only occasionally visit - I'm learning C# for Unity, but c2 is still a respectable game engine imo....
B
73
S
19
G
66
Posts: 2,198
Reputation: 42,183


Return to How do I....?

Who is online

Users browsing this forum: marc254 and 5 guests