Detectc IPad / Galaxy movement

Discussion and feedback on Construct 2

Post » Tue Dec 20, 2011 2:27 pm

Hi! I need to know how to detect when the user change the IPad angle. I want to move a ball based on this angle. Its possible with C2 ?
Be nice with others and with yourself!
My musics: https://soundcloud.com/vinians
My C2 Forum:
http://nmbr.forumeiros.com/
My Site:
http://www.dicasebytes.com.br
B
21
S
5
G
6
Posts: 166
Reputation: 4,885

Post » Tue Dec 20, 2011 2:42 pm

In the touch object you have expressions that give you the angles of your device.
You would have to use some maths to set the position of your ball according to those values.

But yes, it is possible in C2.
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,998
Reputation: 57,791

Post » Tue Dec 20, 2011 2:57 pm

Thanks Kyatric, I will try here.
Flws
Be nice with others and with yourself!
My musics: https://soundcloud.com/vinians
My C2 Forum:
http://nmbr.forumeiros.com/
My Site:
http://www.dicasebytes.com.br
B
21
S
5
G
6
Posts: 166
Reputation: 4,885


Return to Construct 2 General

Who is online

Users browsing this forum: akash15, Colludium, Lof and 10 guests