How to make motion mobile using left and right?

Get help using Construct 2

Post » Sat Apr 28, 2012 9:02 am

I need to know how to make mobile motion using left and right without touching an object, here a sample pic:

B
96
S
25
G
20
Posts: 3,055
Reputation: 22,644

Post » Sat Apr 28, 2012 6:08 pm

You need to add a touch object to your project and reference the alpha/beta/gamma every tick, though I think you need phonegap or some other intermediate tool to get the output game reading the accelerometer , as vanilla exports only seem to pick up touch and not the compass/accelerometer.

Here's the manual entry -


http://www.scirra.com/manual/119/touch/page-1JohnnySix2012-04-28 18:10:32
Image
B
27
S
9
G
5
Posts: 487
Reputation: 11,939

Post » Sun Apr 29, 2012 5:42 am

Hmmm... let me try with Touch.Gamma
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,644

Post » Mon Apr 30, 2012 12:57 am

It works :D

I would like to share my .capx here, you need a mobile device which it supports motion and try it on LAN preview

GammaJoannesalfa2012-04-30 00:57:31
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,644


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 19 guests