Search Unity

Drawing a Circle with range (HELP!!!)

Discussion in 'Scripting' started by felipi arena, Jun 24, 2010.

  1. felipi arena

    felipi arena

    Joined:
    Jun 7, 2010
    Posts:
    25
    Hello,

    I've been working on a TD game and I really need to make the player see the range of the tower he is clicking at (the towers can level up so their range increase). What I want to do is draw a circle around the tower showing the range everytime I click at it.
    How should I do it? Tried to apply a texture of a circle but the circle is always changing size based on the range...


    ps: Im working with javascript.

    Thanks in advance!
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    Check this out.

    --Eric
     
  3. felipi arena

    felipi arena

    Joined:
    Jun 7, 2010
    Posts:
    25
    Yes, it's something like this, but i need to use it using 3d coordinates not screen coordinates... i will try to adapt it somehow!