Mobile App game that needs users to blow onto screen

Hello,

I am a novice with Unity at the moment. I have done the three beginner tutorials but I want to get hands on with a project.

Was just wondering if any of you had experience with apps that required the user to blow air onto their phones.

What sort of coding would that entail. Does anyone know resources I can check out??

Thanks in Advance

You could try to see if there is anything about how they did that for the DS games. I suspect it was using the microphone to detect the air movement as the screen itself wouldn’t detect it.

Realy? That sounds interesting. Could you give me some examples please?

I think Nintendo Dogs allowed you to blow into the Microphone to blow bubbles.

Here’s a pretty good guide; http://www.kaappine.fi/tutorials/using-microphone-input-in-unity3d/
You could use the script there to check how much noise the player makes and use it to trigger events.

1 Like

Thanks. These are really helpful. Have you guys ever played ‘Dumb Ways to Die?’ . There is a section where you are supposed to blow to keep an aeroplane up.

Any ideas on making something like that?

They will all use the same thing, & it’s probably the microphone as that’s the only non touch input apart from the camera (by non touch I mean not touching the screen or pressing a button). If you think about all the bits of a phone/tablet/iPod that can input you only have touch, camera & microphone so logically what would you expect to work with blowing?

Honestly, just my opinion. But I play mobile games usually when I’m outside my house, when I am not alone. And to be honest, I’d be a bit ashamed to start blowing on my cellphone in the streets as much as start dancing around in order to win points in a game. I’m not saying you shouldn’t use blowing mechanics. I’m just saying that at least for me, I’d only play your game at the confort of my house.

I never thought of the look of the thing. Do players want to be seen to be watching their mobile devices & doing heavy breathing into it? My kids had a DS game that needed blowing, they played it for about 30mins then the novelty wore off & they’ve never played it again

@TheAlmightyPixel is correct, player can cause too much noise by just blowing to the mic.

I would also look at how much and how hard you want players to blow at the screen. Exhaling hard and often in a short amount of time can cause you to become light headed or even pass out…

There really isn’t a way to detect if the player is blowing into the microphone or yelling into it, simply because the mic only registers the amount of noise that comes into it and plays it.

Usually, if you blow into the microphone, the volume of the registered noise increases quickly by a great deal. Maybe you could try to check if the volume of the input noise increases a lot within a certain time? For example, have a function running every half a second, and check if the input noise is louder than it was half a second ago. If it is, the user is likely blowing into the mic.

Hope this helps.

Then you probably aren’t the target audience. Me either.
I recall seeing kids looking totally silly playing nintendogs when it was popular. But they were having fun.
Agreeing with Rafael - I seemed to be just another gimmick from Nintendo and was never interested in the odd mechanic that was only partially functional.