Accelerometer on Windows8

Discussion and feedback on Construct 2

Post » Wed Oct 10, 2012 12:32 pm

I have a Win8 laptop with touch screen and accelerometer and other sensors.

Touch works perfectly.

However Touch.AccelerometerX Y and Z are always returning zero values.

Are there any specific hardware requirements for the accelerometer commands on Win8?
B
41
S
11
G
4
Posts: 428
Reputation: 7,356

Post » Wed Oct 10, 2012 3:26 pm

Ah, I thought IE10 supported the standards-compliant events for these, but it doesn't. I've added Windows 8 specific detection of accelerometer and orientation for the next build.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Thu Oct 11, 2012 1:47 pm

I have come across a very interesting example for accessing accelerometer, compass, gyroscope, light, inclinometer, orientation and Geo-location sensor APIs in JS in Win8. They work 100% in IE10 as I have tested them out.

http://software.intel.com/en-us/articles/sample-application-all-in-one-sensors

Would it be possible to include these sensor commands in C2?
B
41
S
11
G
4
Posts: 428
Reputation: 7,356

Post » Thu Oct 11, 2012 3:20 pm

@bjadams - accelerometer and inclinometer should be working in r106, have you tried it?

I'm not sure about the other sensors - are they really supported by a lot of devices and useful for gaming?
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Thu Oct 11, 2012 7:49 pm

I have just tried r106 - accelerometer works perfectly!

How can I test Inclinometer? Is it AngleAt command?

About the other sensors...

Light sensor - show day/night scenery in game

Geo Location - in games with a world map, you can start from the level from the country you are in!

compass gyroscope and orientation - useful in virtual map-quest style games where you have to physically move around the room!!!
B
41
S
11
G
4
Posts: 428
Reputation: 7,356

Post » Tue Jan 22, 2013 3:47 pm

I think accelerometer is fun to implement. It's sort of a novelty, however, in many games and you should definitely provide support for whatever input your user might be using. Actually your app will fail certification with the Windows Store if you exclude inputs. Rightly so too. If I downloaded a game and tried to play with my keyboard and mouse with no touch and it didn't work I would be disappointed.
B
15
S
5
Posts: 28
Reputation: 1,533


Return to Construct 2 General

Who is online

Users browsing this forum: Yahoo [Bot] and 11 guests