(S)How do I rotate object based on device orientation?

Get help using Construct 2

Post » Wed May 17, 2017 2:59 pm

Hey there!
I want to make a sprite point downwards relative to the world in real life (img bellow showing what I mean better), but I can't figure out how to do it...
Image
(High rez link: https://www.dropbox.com/s/237oi0dw8bp2g ... n.png?dl=0 )

I tried with Touch.Alpha, but apparently that's the compass orientation... (As I found out here: touch-alpha-orientation_t191586)
Touch.Beta and Touch.Gamma don't return the right tilt... (I'd want the tilt on the Z axis, if I'm not mistaken...)
(Code: Sprite - set angle to Touch.Alpha (Adding extra degrees didn't help))

The only thing in Touch that's left is either "motion" or "touch" (tapping the screen), so I'm kinda' lost...
Is there no way of making this work in C2?
Last edited by TRMG on Tue May 23, 2017 9:10 am, edited 1 time in total.
ImageImageImageImage
B
30
S
9
G
7
Posts: 245
Reputation: 5,602

Post » Fri May 19, 2017 9:22 am

bump
B
30
S
9
G
7
Posts: 245
Reputation: 5,602

Post » Sat May 20, 2017 4:42 pm

Hey @Ashley , I know you must be busy developing C3 and with bug fixes in C2, but I really can't figure out how to do this and it seems like no-one else knows... So, could you please help me with this?

EDIT: Solved thanks to @Johncw87 : touch-alpha-orientation_p1123360?#p1123360
B
30
S
9
G
7
Posts: 245
Reputation: 5,602


Return to How do I....?

Who is online

Users browsing this forum: beohs and 11 guests