Shake functions

I have this code here…

 local function shakeme( event )  
 if (event.isShake) then  
 answera.isVisible = true  
 answera.alpha = 1  
 end  
 end  
  
  
 Runtime:addEventListener("accelerometer",shakeme)  

It is alittle part of my code, and when i test it out on my ipod it does not work. I am almost positive the code is right, but it still does not work. Is there a way i could test it out via computer? [import]uid: 24708 topic_id: 12210 reply_id: 312210[/import]

Hi brian,

you can, in the simulator select hardware >> Shake.
If I’m not totally mistaken this should simulate it. [import]uid: 21937 topic_id: 12210 reply_id: 44452[/import]

Yes that is perfect…

Thank You!

I was playing with my Ipod and the shake to shuffle featured worked… i just wonder why it did work on the app! [import]uid: 24708 topic_id: 12210 reply_id: 44465[/import]