Author Topic: Joy stick?:  (Read 5093 times)

J450NP13

  • Guest
Joy stick?:
« on: December 10, 2013, 03:57:25 PM »
I need to make a joystick.  Is this possible with NGUI with out buying the virtual controls?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Joy stick?:
« Reply #1 on: December 10, 2013, 09:37:43 PM »
Sure.

J450NP13

  • Guest
Re: Joy stick?:
« Reply #2 on: December 10, 2013, 10:35:23 PM »
I have no idea where to begin...

I have been at it all night.  I just need a joystick to control the rotation of a camera.  I've tried so many different things I am burnt out...:|

kitgui

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 26
    • View Profile
Re: Joy stick?:
« Reply #3 on: December 10, 2013, 11:28:45 PM »
You can try putting 4 buttons on screen which rotate the Camera transform OnPress.

That would be the simplest form of a camera rotation control I could think of.

J450NP13

  • Guest
Re: Joy stick?:
« Reply #4 on: December 11, 2013, 12:02:00 AM »
I've tried that.  It didn't work good.  The camera just kept rotating.

wom

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 34
    • View Profile
Re: Joy stick?:
« Reply #5 on: December 11, 2013, 02:09:12 AM »
http://stackoverflow.com/questions/20291409/unity-android-joysticks-with-c-sharp/20294643#20294643

Follow the advice in this answer on stack overflow - download the Penelope tutorial and start reading and trying things out.

The Penelope tutorial is a nice, gentle introduction to on-screen controls in Unity.
The tutorial involves using basic Unity GUI textures, not NGUI - but once you've got a handle on how to actually do this stuff in Unity - using NGUI to do it will be very easy.