shake a mobile device and do event

Get help using Construct 2

Post » Fri Nov 28, 2014 11:32 pm

its possible to make something like that? i meas you shake your phone in hand and app/game plays sound ?
B
109
S
26
G
46
Posts: 1,885
Reputation: 35,166

Post » Sat Nov 29, 2014 12:18 am

Have a look at the Touch object.. it has several expressions to get the speed at which someone is moving the device. It does not work on every platform and not with every device (obviously), but those that have an accelerometer can give sensible results with that.. you coulkd just check against a threshold and then play a sound when your values exceed it.
B
73
S
28
G
32
Posts: 479
Reputation: 19,669

Post » Sat Nov 29, 2014 10:45 am

good clue
B
109
S
26
G
46
Posts: 1,885
Reputation: 35,166


Return to How do I....?

Who is online

Users browsing this forum: Anonnymitet, leena222, tatogame and 21 guests