[SOLVED] Accelerometer Laggy Movement

Hello Community, I need some help to make a fluid accelerometer movement. If you visit this link:

http://mobile.tutsplus.com/tutorials/corona/create-a-brick-breaker-game-with-the-corona-sdk-collision-detection/

You can download a Brick Breaker Tutorial, where you can move the paddle with the accelerometer, but the problem is that the paddle movement its too slow or laggy, I want a fluid movement like Doodle Jump, anybody help me please.

Thnks… [import]uid: 81091 topic_id: 17863 reply_id: 317863[/import]

just enter system.setAccelerometerInterval( 30 ) somewhere in your main and the lag should go away.
Be sure to check out Corona Ultimote as well, you can debug these events directly from the simulator. This is a new product that we just launched. [import]uid: 55057 topic_id: 17863 reply_id: 68187[/import]

Ok, I’ll check that… ty… [import]uid: 81091 topic_id: 17863 reply_id: 68211[/import]

Hey Buddy, Ultimote looks great, awesome third party tool… [import]uid: 81091 topic_id: 17863 reply_id: 68213[/import]

PERFECT!! Thanks so much… FIXED!! [import]uid: 81091 topic_id: 17863 reply_id: 68218[/import]

You are welcome! Please let us know if you have any comments or questions about Ultimote.

-M.Y. Developers [import]uid: 55057 topic_id: 17863 reply_id: 68228[/import]

I downloaded the demo, but I don’t understand how to use it to test my apps. :frowning:

Sorry, I’m so noob… [import]uid: 81091 topic_id: 17863 reply_id: 68261[/import]

devsalad,
Sorry we did not see this before.
The ultimote demo will allow you to use pre-recorded macros to test hardware only events in the simulator. To do this please follow these directions.

  1. copy Ultimote.lua into your project directory
  2. copy the macros folder into your project directory. It is in the /ultimoteDemo/MacroDemos/ folder. It is the one with all the text files.
  3. please insert the following lines into your main.lua file
----ULTIMOTE CODE  
local ultimote = require("Ultimote")  
ultimote.playMacro({name = "macros/accelerometer"})  
---ULTIMOTE CODE  

and thats it! just run your app and you should be getting accelerometer events in the simulator. I recall we did a simple figure 8 maneuver for that macro.

If your app uses both accelerometer and multitouch events you can use the following lines of code to get both events simultaneously.

----ULTIMOTE CODE  
local ultimote = require("Ultimote")  
ultimote.playMacro({name = "macros/accelerometer"})  
ultimote.playMacro({name = "macros/multitouch"}) --play multiple macros at once  
----ULTIMOTE CODE  

I recall for the multitouch macro we did a few common multitouch gestures like pinch zoom and rotate as well as a 5 finger pinch as well.

Hope that helps and sorry for the delay.

M.Y. Developers

[/code]
[import]uid: 55057 topic_id: 17863 reply_id: 69013[/import]

OK, thank you so much, I’ll test it… [import]uid: 81091 topic_id: 17863 reply_id: 69175[/import]