How do I prevent suspension on Android?

Get help using Construct 2

Post » Wed Dec 31, 2014 1:40 pm

Hi!

I´m making a game only using your device acelerometer to move de main player.

The problem is that you never touch the screen while playing, so the screen goes sleep and get off.

Is any way to make the screen not going off to suspension?

I tried plugins in XDK but not working, so I think I have to do this directly in Construct 2.

Thanks!
B
6
Posts: 12
Reputation: 276

Post » Sat Aug 15, 2015 8:25 am

I have the same issue. I've played some construct 2 games from the google play store, some games don't suspend when you don't touch the screen, while others do?
My Games on google play

ImageImage
B
31
S
6
G
4
Posts: 97
Reputation: 3,099

Post » Sat Aug 15, 2015 8:48 am

I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sat Aug 15, 2015 8:48 am

i guess it's something to do with the XDK. Games compiled with ludei, as far as i can tell, don't have this issue?
My Games on google play

ImageImage
B
31
S
6
G
4
Posts: 97
Reputation: 3,099

Post » Sun Aug 16, 2015 6:11 am

Thanks LittleStain, I've tried adding the suggested method into c2runtime following the conventions but no joy. Has anyone got this to work?
My Games on google play

ImageImage
B
31
S
6
G
4
Posts: 97
Reputation: 3,099


Return to How do I....?

Who is online

Users browsing this forum: Lancifer and 5 guests