Creating a whip app with accelerometer..

Get help using Construct 2

Post » Thu Sep 17, 2015 2:39 pm

I wanted to create a simple whip app but am struggling to get the whipping motion with the accelerometer. It's a little confusing so i was hoping someone could help out?

Thanks
B
5
S
2
Posts: 126
Reputation: 876

Post » Thu Sep 17, 2015 3:28 pm

If you could provide some more information on what a "simple whip app" is and what a "whipping motion" would be in your opinion, you might get better response to your question..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Sep 17, 2015 3:42 pm

@LittleStain

Apologies, these apps are well known so i assumed i didn't need to explain it. It's just a app the plays a sound (normally a whipping sound) once the user does the whip motion with their hands while holding the phone. The whipping motion is basically when you simulate cracking a whip, the motion of moving your hands fowards then back quickly.

Here's a video that will show what the app is about -

https://www.youtube.com/watch?v=w7LXAciiyLY

Hope that helps :)
B
5
S
2
Posts: 126
Reputation: 876

Post » Thu Sep 17, 2015 4:06 pm

How far have you got?

What specifically do you need help with?
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
86
Posts: 5,418
Reputation: 59,522

Post » Fri Sep 18, 2015 4:55 pm

@zenox98

The problem i'm having is that while i've got the app to work in theory, whenever i move my phone to play the sound, the sound plays several times all at once. When i use the 'Trigger Once' event, then no sound plays.

Also, i want the sound to play only when i move my phone forwards as shown in the video i posted, but in my case the sound also plays if i move my phone backwards (hope that makes sense). I don't know how to make it so it only plays when i move my phone forwards and not back.

Here's the event i'm using to make the app -

Image
B
5
S
2
Posts: 126
Reputation: 876

Post » Mon Sep 28, 2015 3:09 pm

I've been doing some minor tweaks with this to try and get the app working right with alot of trial and error and I've kind of made some progress with the app, still need help though.

It sort of works but i've still got an issue where the sound will play multiple times when you move the phone once.

Also, the other issue i have is that the sound only plays after i finish moving my phone whereas it should be that the sound plays during moving the phone, i don't know how to do this so i'm hoping some can help?


Image
B
5
S
2
Posts: 126
Reputation: 876


Return to How do I....?

Who is online

Users browsing this forum: gskunk, tarek2 and 43 guests