accelerometer

Get help using Construct 2

Post » Tue Mar 08, 2016 6:40 pm

Hello everyone, I'm trying to use the accelerometer to tilt a car, can someone tell me how to apply it in an example like this:
https://www.dropbox.com/s/wd4v7m66nhimhi6/Car.capx?dl=0
Last edited by gioca72 on Wed Mar 09, 2016 7:23 pm, edited 1 time in total.
B
7
S
3
Posts: 54
Reputation: 687

Post » Tue Mar 08, 2016 11:13 pm

https://www.scirra.com/manual/119/touch

You'll be using the Touch.Alpha, Touch.Beta, and Touch.Gamma expressions to get the tilt angle in degrees. Which direction do you want to tilt?

For example, you can set the car angle by System - Every tick | CarSprite - Set angle to Touch.Gamma
Mistakes were made.
B
53
S
27
G
114
Posts: 1,699
Reputation: 64,446

Post » Wed Mar 09, 2016 7:24 pm

unfortunately, are not very practical program, someone could make me an example of this capx:
https://www.dropbox.com/s/wd4v7m66nhimhi6/Car.capx?dl=0

Many thanks
B
7
S
3
Posts: 54
Reputation: 687

Post » Thu Mar 17, 2016 2:50 pm

can anyone help me please, is for a school project ......
B
7
S
3
Posts: 54
Reputation: 687


Return to How do I....?

Who is online

Users browsing this forum: jezjones24, minigame, semaso and 4 guests