i have added touch button on my screen, but how to join them to my fps ?
here are the buttons -
private var axisH: float = 0;
private var axisV: float = 0;
function OnGUI(){
axisV = axisH = 0;
if (GUI.RepeatButton(Rect(50, 10, 40, 40), “W”)) axisV = 1;
if (GUI.RepeatButton(Rect(50, 90, 40, 40), “S”)) axisV = -1;
if (GUI.RepeatButton(Rect(10, 50, 40, 40), “A”)) axisH = -1;
if (GUI.RepeatButton(Rect(90, 50, 40, 40), “D”)) axisH = 1;
}
i have attached it to my First Person Controller.
Thank in advance for your help, this is my first hour in mobile development.
Let me know if there is any fps tutorial for mobile
Had the same Problem
You can`t touch more than one GUI Button simultaneosly
But,please,use instead key emulation a virtual Joystick for the Movement.
Get a look on the Standard Assets(Mobile) and understand the First Person Setups.Im use the builtin Joystick class tooo.
thanks bro i got it to work…i have 3 more queries
how can i make the mobile vibrate on tab
how can i change my scene on tilting my mobile, i mean my scene stays potrait, i want it to auto change to landscape when i tilt my mobile like that
Please help me on this point
1.iPhoneUtils.Vibrate()
2.Set in the Player Settings(where you change the icon,etcc.) the Orientation to Auto-Rotate.
Hope Ive undersand your questions coreectly,I
m from Germany and don`t speak English very well.
Yannic
oh yes…thank you
i am trying to change the logo of apk file, but could change it, i changed all the images inside the publish settings, but logo is not changed
What do you mean with ‘logo’?
pezz
January 29, 2012, 12:02am
7
You should do the mobile tutorial