Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Screen goes to sleep
Started by bonesmalone133 Nov 07 2010 10:40 AM

2 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

bonesmalone133

[GLOBAL: userInfoPane.html]
bonesmalone133
  • Contributor

  • 139 posts
  • Corona SDK

Hello all,

I have been learning Corona for a couple days now and have been building a game that uses the accelerometer, forgive me if this is a stupid question as I have only just recently started learning iphone development.

My question is when I run the game on my iPhone the screen starts to darken after a minute and then eventually will turn off (like it should do when I'm not using it). It does it even if I'm in the process of tilting it to move my object around the screen. Any suggestions on why it would be doing this?

Thanks,

-Clark
uid: 5786 topic_id: 3479 reply_id: 303479


[TOPIC: post.html]
#2

MikeHart

[GLOBAL: userInfoPane.html]
MikeHart
  • Corona Geek

  • 1,278 posts
  • Corona SDK

Because you did not set the idle timer
system.setIdleTimer( false )
uid: 5712 topic_id: 3479 reply_id: 10513


[TOPIC: post.html]
#3

bonesmalone133

[GLOBAL: userInfoPane.html]
bonesmalone133
  • Contributor

  • 139 posts
  • Corona SDK

Perfect! I knew it had to be something simple but I was just overlooking it in the api references, thanks for your help with a silly question.

-Clark
uid: 5786 topic_id: 3479 reply_id: 10522



[topic_controls]
[/topic_controls]