Use iPhones volume keys
Hi
Is it somehow possible to use iPhones volume keys to do something in the game. For example, if you raise the volume the object becomes higher and if you lower the volume the object will shrink. I can't find any attribute that controls the volume. iPhones built-in date and time is easy to use and adjust, why is it not the same with the volume?
It is possible to use a keyboard or to press anywhere on the screen to do what i want.
I have created an attribute called Volume, and a rule
Touch is pressed change device> audio> sound volume> to Volume + 0.1. But I want to be able to use the volume buttons to do the same. Is there a way to do it?
Hope you understand what I mean.
Is it somehow possible to use iPhones volume keys to do something in the game. For example, if you raise the volume the object becomes higher and if you lower the volume the object will shrink. I can't find any attribute that controls the volume. iPhones built-in date and time is easy to use and adjust, why is it not the same with the volume?
It is possible to use a keyboard or to press anywhere on the screen to do what i want.
I have created an attribute called Volume, and a rule
Touch is pressed change device> audio> sound volume> to Volume + 0.1. But I want to be able to use the volume buttons to do the same. Is there a way to do it?
Hope you understand what I mean.
Best Answer
-
ericzingeler Posts: 334
The device volume attribute is deceiving... as its not really the device volume. Think of your app as having two volume layers. The fist layer is controlled by the device using the volume buttons. The second (the gamesalad layer you can control, sound/Music volume attributes) is a percentage of the first layer.
To directly answer your question, no you can't use the volume buttons to control any attributes in your game.
Answers
NO...not even with Xcode.
Hope this helps
Chakku
Now I do not need to waste a lot of time to make it work. Time to move on.