Accelerometer on Android

Get help using Construct 2

Post » Sat Jun 22, 2013 10:01 pm

Hello everyone.

I got a question for you guys and it is if i can implement acceloremeter in a 360 degress game.

How can i do to make the game make a 180 left degress turn and 180 right degress turn?

Thanks for the answers.
B
6
S
1
G
1
Posts: 18
Reputation: 612

Post » Sun Jun 23, 2013 8:29 am

Sounds like you'll actually want to utilize an inclinometer rather than accelerometer, no? The following page from the C2 manual covers this.

Construct 2 manual: Touch

And there's an example of the inclinometer capabilities in use in the example projects.

Just press New, then select "Template: Infinite Jumping". The inclinometer is used in the "Touch -> Gamma orientation" event.
B
126
S
7
G
4
Posts: 185
Reputation: 7,233

Post » Sun Jun 23, 2013 1:33 pm

i understand now, so let me try to compile the project infinite jump to try it on my phone, and if i can tilt left and right that would be fine to my game.

Thanks for the answer men!! xD
B
6
S
1
G
1
Posts: 18
Reputation: 612


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 5 guests