system.setAccelerometerInterval gives error

not sure what is wrong, I use as documented here:

http://developer.anscamobile.com/reference/index/systemsetaccelerometerinterval

what I get is:

attempt to index field ‘system’ (a nil value)

The idea why I am using this is to set it to a number that corresponds to my frame rate (30 HZ) but not sure that would be useful…

When I omit this line, the accelerometer moves the player just fine.

I use the latest version of Corona SDK. [import]uid: 109677 topic_id: 22676 reply_id: 322676[/import]

Can you post up your code?

[import]uid: 84637 topic_id: 22676 reply_id: 90490[/import]

the code is:

system.setAccelerometerInterval( 30 ) [import]uid: 109677 topic_id: 22676 reply_id: 90542[/import]

This is an odd issue. I have tested this myself with the code you provided and it works fine. [import]uid: 84637 topic_id: 22676 reply_id: 90942[/import]