[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]

## use the accelerometer Started by uppertechsuport Jul 19 2013 08:00 PM

4 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

### uppertechsuport

[GLOBAL: userInfoPane.html]
uppertechsuport
• Observer

• 4 posts
• Corona SDK

Hello my friends.

I do not speak english, then this topic will use the divine help of google translator. Hope you understand. Really.

Even searching I have not found a detailed tutorial on using the accelerometer.

I would like to make a game "Get the ball to the hole," using the aceleremetro to guide the ball.

Are there any detailed tutorial for beginners that?

[TOPIC: post.html]
#2

### horacebury

[GLOBAL: userInfoPane.html]
horacebury
• Corona Geek

• 3,069 posts
• Corona SDK

[TOPIC: post.html]
#3

### uppertechsuport

[GLOBAL: userInfoPane.html]
uppertechsuport
• Observer

• 4 posts
• Corona SDK

http://mobile.tutsplus.com/tutorials/corona/corona-sdk-accelerometer/

http://www.coronaremote.com/

http://blog.joshdobbs.com/?p=118

Find the accelerometer sample code in the CoronaSDK application.

thank you.
Helped very much

[TOPIC: post.html]
#4

### uppertechsuport

[GLOBAL: userInfoPane.html]
uppertechsuport
• Observer

• 4 posts
• Corona SDK

But only one problem.
Look at the code:

function movimento(event)
balao.x = (balao.x + event.xGravity * 20)
balao.y = (balao.y + event.yGravity * 20)
balao1.x = (balao1.x + event.xGravity * 20)
balao1.y = (balao1.y + event.yGravity * 20)
end

"balao" and "balao1" are the "balls" I want to move.
But in the Y axis they move, but the X axis gives an error.

[TOPIC: post.html]
#5

### horacebury

[GLOBAL: userInfoPane.html]
horacebury
• Corona Geek

• 3,069 posts
• Corona SDK

What is the error?

Are the balls physics objects or normal display objects?

[topic_controls]

[/topic_controls]