Search Unity

touch wheel like hero of sparta™ lite

Discussion in 'iOS and tvOS' started by xcoder, Dec 15, 2009.

  1. xcoder

    xcoder

    Joined:
    Sep 26, 2009
    Posts:
    7
    Hi All,

    How I made a touch wheel for player movements like "hero of sparta™ lite"?

    Please help me with some sample.
     
  2. DrFromTheLab

    DrFromTheLab

    Joined:
    May 21, 2009
    Posts:
    108
    you need 2 bitmaps at first (use the unity GUI or your own solution). anyway the center of the big one = is the zero movement point. then sliding with your finger in the "bigger" wheel sets the speed up vector for your hero in 2 dimensions (so if your finger is in the right of the wheel you get: X=1 and Y let me say -0.02f) now you simply add this values to your hero (as physics force(x,0,y) this should work.