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
20
S
9
G
4
Posts: 197
Reputation: 4,080

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
90
S
30
G
24
Posts: 3,189
Reputation: 32,390

Post » Wed Feb 15, 2012 2:09 pm

Hum, thanks.
Any exemple ? I must admit I'm a bit stuck.
B
20
S
9
G
4
Posts: 197
Reputation: 4,080


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests