using accelerator to change gravity angle

Get help using Construct 2

Post » Wed Feb 15, 2012 7:42 am

For an application on a mobile device, I'll need to implement such a fonction.
In the page, there would be a tree and when an action is performed, apples will fall. But I don't want them to fall to the bottom of the screen but to the real ground and that, wathever the rotation angle of the device.
Any hint on how to do that ?
Laurent2012-02-15 07:43:56
B
38
S
15
G
5
Posts: 254
Reputation: 5,834

Post » Wed Feb 15, 2012 11:16 am

Use physics. Use rotation of layout. Put a 'wall' of immovable physics objects around the screen. The touch object can give accelerometer information.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,699

Post » Wed Feb 15, 2012 2:09 pm

Hum, thanks.
Any exemple ? I must admit I'm a bit stuck.
B
38
S
15
G
5
Posts: 254
Reputation: 5,834


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 19 guests