1. We've introduced thread tags, search within a thread and similar thread search. Read more here.
    Dismiss Notice
  2. We've released our first Timeline Experimental Preview, our new tool for creating cutscenes and more! To check it out click here.
    Dismiss Notice
  3. All Unity Pro perpetual license customers: your special offer to subscribe is ready! Click here.
    Dismiss Notice
  4. Unity 5.5 is now released.
    Dismiss Notice
  5. Check out all the fixes for 5.5 in patch releases 1 & 2.
    Dismiss Notice
  6. Unity 5.6 beta is now available for download.
    Dismiss Notice
  7. Get prepared for the Tizen Mobile App Incentive Program! Read more about the upcoming program here.
    Dismiss Notice
  8. Enter the Microsoft Developer Challenge for a chance to win prizes. Read more about it here.
    Dismiss Notice

Virtual thumbsticks

Discussion in 'Scripting' started by Code_Helix, Mar 21, 2012.

  1. Code_Helix

    Code_Helix

    Joined:
    Feb 21, 2012
    Messages:
    79
    Hi, I was wondering if anyone knows how to or can point me to a tutorial that will show me how to make virtual thumbsticks.
     
  2. TeotiGraphix

    TeotiGraphix

    Joined:
    Jan 11, 2011
    Messages:
    128
    There is code in the AngryBots demo that shows you how to implement Joysticks which are "thumbsticks" for mobile games.

    Mike
     
  3. tigerfoot

    tigerfoot

    Joined:
    Nov 2, 2009
    Messages:
    132
    There are also several examples in Standard Assets (Mobile) package.
     
  4. Code_Helix

    Code_Helix

    Joined:
    Feb 21, 2012
    Messages:
    79
    Thanks for the help. I'm wanting to do it in C# and notice that those are in Javascript. I'm gonna try and see if I can convert them myself but if you know of where I can find it already converted that be awesome. Anyways, thanks again for the help.
     
  5. tigerfoot

    tigerfoot

    Joined:
    Nov 2, 2009
    Messages:
    132
    I use .js so i wouldnt know about C#.
     
  6. TeotiGraphix

    TeotiGraphix

    Joined:
    Jan 11, 2011
    Messages:
    128
    Hi,

    It's not really that hard to convert them to C#. I was just going to be doing that as well for some future projects.

    I really do find porting things from javascript in to C# in Unity greatly increases your understanding of the mechanics of the logic. I would recommend doing that. If you already know C# a bit I can't see those scripts taking that long to port.

    Mike