Device AccelerationX

Get help using Construct 2

Post » Sat Feb 11, 2012 7:36 pm

I don't understand how the device Acceleration works, I tried to add an event:

Is Device Motion Supported.

then set the text of an object to accelerationX & " " & accelerationY

But it says that it's an unknown expression :-(

I need to get if the device is being shaken and from what side, how can I make it.
B
29
S
9
G
6
Posts: 525
Reputation: 8,294

Post » Sat Feb 11, 2012 7:51 pm

The expression AccelerationX by itself does not exist indeed.
Touch.AccelerationX does exist though.

I suggest you to check the "Touch" behavior section in the how do I FAQ, there are several topics listed there, some treating this subject.

I'm afraid I can't help really more, I don't have devices to test touch functions.

I had made this example out of logic.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Sun Feb 12, 2012 9:15 am

Don't worry you've been very helpful. This guide: http://www.scirra.com/manual/119/touch where I got the information isn't very clear, as soon as I tested better I'll do a tutorial on the accelerometer.
B
29
S
9
G
6
Posts: 525
Reputation: 8,294


Return to How do I....?

Who is online

Users browsing this forum: zatyka and 21 guests