accelometer

Get help using Construct 2

Post » Thu Jan 12, 2012 12:50 pm

If someone uploads the HTML onto dropbox i'll be happy to test on a iphone 3Gs and 4S
B
29
S
12
G
7
Posts: 740
Reputation: 7,839

Post » Thu Jan 12, 2012 12:52 pm

http://dl.dropbox.com/u/44710358/Accelerometer/index.html

http://dl.dropbox.com/u/44710358/Accelerometer%20iPad/index.html

This is 2bdigital's examples
B
93
S
19
G
34
Posts: 1,840
Reputation: 27,958

Post » Thu Jan 12, 2012 1:16 pm

Ok:
It moves, But its kinda weird. the ball moves but i think its the gyroscope not the accelerometer. It works in the sense if i move my phone in a 360 degree movement the ball follows that pattern, i oppose to the accelerometer, Where if i tilt the phone left, the ball would move left and vice versa with right up and down :)

they both move on the 3gs(Have not tested with 4s yet) But its not easy to control, I dont get it.. Second link was better but first link as the first link i kept on moving off the screen...
B
29
S
12
G
7
Posts: 740
Reputation: 7,839

Post » Thu Jan 12, 2012 1:45 pm

Hi guys,

I used Accelerometer events because Gyroscope events don't work on the iPad 1st gen where I begun testing but I think they work on iPhone 4 and iPad 2.

Like I said this is a very basic example and it is far from perfect plus its not working on all mobile and tablet devices.
B
5
S
1
G
1
Posts: 111
Reputation: 1,122

Post » Tue May 08, 2012 11:35 am

Any one already create working gyroscope or accelerometer for android?
B
93
S
19
G
34
Posts: 1,840
Reputation: 27,958

Post » Fri Jan 04, 2013 6:09 am

I will probably.
Thinking of another prototype in pipeline.
Krish
Hey! Did you know that you can hire me to make your games?

Click Here to See More
B
21
S
5
G
5
Posts: 391
Reputation: 5,567

Post » Fri Jan 04, 2013 9:44 am

what another prototype? @krish
B
93
S
19
G
34
Posts: 1,840
Reputation: 27,958

Post » Fri Jan 04, 2013 4:35 pm

One of my future games will need to use accelerometer and gyroscope; so I will need to build a prototype anyway.
Krish
Hey! Did you know that you can hire me to make your games?

Click Here to See More
B
21
S
5
G
5
Posts: 391
Reputation: 5,567

Post » Fri Mar 15, 2013 8:47 pm

Hi,

Does anyone have a working example for the Accelerometer for Android devices that I could take a look at, please?

Thanks
B
4
Posts: 2
Reputation: 604

Previous

Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, anty21ro, Megavolt and 18 guests