Iphone/Touch.alpha

Get help using Construct 2

Post » Fri May 18, 2012 2:15 am

Hello everybody !,

I do a project using Orientation devices and "Touch.alpha" to move a view on a 360 panorama, it works well but i want to improve it and add user real orientation (compass data) as "starting" project orientation.

Actually my "starting" orientation is always "0" in Touch.Alpha -> "North" even if my current orientation is different ... is there way in Construct 2 to retrieve current user orientation ?.



B
16
S
5
G
3
Posts: 298
Reputation: 5,240

Post » Fri May 18, 2012 7:12 am

Hey Naelian ,
Could you give more information about your project ? It looks like something I try to implement too.
B
20
S
9
G
4
Posts: 197
Reputation: 4,080

Post » Fri May 18, 2012 12:44 pm

Hi Laurent, check in C2 forum "your creations" you will find my project Herenaelian2012-05-18 12:45:55
B
16
S
5
G
3
Posts: 298
Reputation: 5,240

Post » Fri May 18, 2012 1:16 pm

Thanks Naelian
B
20
S
9
G
4
Posts: 197
Reputation: 4,080

Post » Sat May 19, 2012 8:30 am

Seems i need this to make it work =>

webkitCompassHeading

A direction that is measured in degrees relative to magnetic north.

readonly attribute double webkitCompassHeading

Direction values are measured in degrees starting at due north and continuing clockwise around the compass. Thus, north is 0 degrees, east is 90 degrees, south is 180 degrees, and so on. A negative value indicates an invalid direction.

Availability
Available in iOS 5.0 and later.

Unfortunatly i'm not (yet) on iOS 5 ... and i don't think this function will be integred in Construct 2.
naelian2012-05-19 08:35:38
B
16
S
5
G
3
Posts: 298
Reputation: 5,240


Return to How do I....?

Who is online

Users browsing this forum: Rezzon71, tarek2 and 25 guests