Screen goes to sleep

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 [import]uid: 5786 topic_id: 3479 reply_id: 303479[/import]

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

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 [import]uid: 5786 topic_id: 3479 reply_id: 10522[/import]