How would I go about detecting a device shake without using the shake extension?
Printable View
How would I go about detecting a device shake without using the shake extension?
By accelometer? But it eould be very in-precise.
Love to see how that works ;)
Accelometer one?
Evilized: what do you mean?
The reason I ask about not using the shake object is because it always gives me an error in XCode. Has anyone managed to get it working with the latest version of the iOS exporter and MMF2?
I will try to make example later on to shake with accelometer.
Thank you very much, Fano :)
I need to make myself some accelometer controls so jt's in my interest to play with it :)
I love to how it could work correctly with accelerator object, looks like the mobile will react before you actually shake the phone.
But i could be very wrong.
Surely if the calibration is set high enough it will be fine?
Can i ask why you don't want to use the shake extension? Just curious...
Good news! It was giving me an error using the Shake object, but the new versions of MMF2 and the iOS exporter (released today) fixed that error :)
Anyway I just came back to home, so I will start working on example / test app. We will see if it will work or not.
Unfortunately I wasn't able to start the test-app yesterday I will do it later on Today. I had to sort out quite irritating bug in my engine cos I got idea how to do it. So thanks for patience in advance.
I had thought about this before the extension came out, I was thinking it'd be along the lines of using the accelerometer and detecting the difference between the angles and seeing if the amount the values change over a few frames is over a certain number. Kind of stopped planning it when the extension came out, lol...
DistantJ that's pretty much my idea.
OK so i was testing it on examples by others and some games and I can say - yes ut's totally possible. When I will get spare hour or so I will make couple of examples.
Hey guys, I have had a bit of an idea for a quick 2-day project, but it requires shake detection. If I'm to get it done in the 2 days I can't be fooling around trying to get the shake working without the extension, I was wondering if the shake extension is all fit and working now? I noticed a few people reporting errors, but others saying it works since an update.
Yes, it's working fine for me at the moment (currently using the latest build, but it was working on previous builds).
Whoever wrote that shake extension needs to fix it :)
I've made a Shake Widget that doesn't use the Shake Extension, but works very similarly in terms of sensitivity. I needed to be able to shake and detect orientation in the same frame, which wasn't possible with the Shake extension and the Accelerometer object (only one will work)
Hopefully people will find it useful.
I've posted it here: http://community.clickteam.com/showthread.php?t=79351
Nice work Ayre!!
DistantJ - You're welcome! Hope you find it useful
Well, I have a few shake controlled things in mind and was planning on doing something similar, but your example has saved me the time it'd have taken to work it out myself, if you see what I mean? :)