Sons of Camelot: Avoid screen from shutting off (android/IOS)


If you don't touch screen mobile, screen will shut off.
If screen goes black in the middle of classical introduction scene, it' not the best start.

¿Solutión? Here

Summarizing, add this code in an object (creation code) at the beginning of the game:

if os_type == os_android || os_type == os_ios
   {
   os_powersave_enable(false);
   }

If only using Android, remove IOS part.

Comentarios