Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Approach to a project.

Discussion in 'Scripting' started by billy2k1, Jan 10, 2022.

  1. billy2k1

    billy2k1

    Joined:
    Nov 11, 2021
    Posts:
    9
    Hello,

    I finished my first person shooter game as my first ever unity project. Now I want to venture out of my comfort zone and try a harder project. As this is my second project I need some help in how to execute this project. So excuse me if I ask any stupid questions.

    So I have a idea, I want to make a game where I have a combination of values (A, B, C) stored in a array.
    The point of this is to allow the user to use Pythagoras theorem to calculate the necessary distance to hit to the point given in red.

    Once the user gets it right, it leads to question 2 etc.

    So up until this point I am somewhat aware on what to do, and that I'll be using line renderer to illustrate to the user A B C. However, I can not understand how I can illustrate distance between points in numbers. Since majority of the games logic will be revolving around this part.

    If someone can help me start in the right direction It'll be much appreciated.
     
  2. RadRedPanda

    RadRedPanda

    Joined:
    May 9, 2018
    Posts:
    1,644
    You could try rendering a Canvas in world space with the text inside of it.