Too many bugs

I don’t know how, but there’s just too many bugs in my game!!!

  1. Placement.

    When I place my player at end of the level, it is at the start, When I place it at the start, It enters the void(as in minecraft).

  2. Collision. It enters the model, even though it has a collder. pic:![26219-untitled.gif|1360x768](upload://p4llYugQ29xRqlLe7ZQYjq1gMdS.gif)
  3. Health, Energy and Confidence.

    It end game when energy = 0, but not when confidence/health = 0.
    Code:

    function HealthConfidenceNRG(){
    Energy -= EnergyLoss;
    if (Energy == 0 || Health == 0 || Confidence == 0)
    {
    Time.timeScale = 0;
    LostTheGame = true;}
    }
    //variables are define, just I dont want to show. type is proper.
    

    also note the alternative i use earlier

    unction HealthConfidenceNRG(){
    Energy -= EnergyLoss;
    if (Energy == -1)
    {
    Time.timeScale = 0;
    LostTheGame = true;}
    Debug.Log("Energy reduced to" + Energy);
    if(Health == 0)
    {
    Time.timeScale = 0;
    LostTheGame = true;}
    if(Confidence == 0)
    {
    Time.timeScale = 0;
    LostTheGame = true;}
    }
    

    Thank you in advance

  1. What does “Start” and “End” of your level mean? What kind of controller are you using? If you place the First-Person Controller somewhere in your level, this is where you will start.

  2. Again, it depends on what controller you are using. The FPC won’t move through colliders if using physics for movement (AddForce and such).

  3. Try … <= 0 for all stats instead of == 0.

  4. It’s better to ask seperate questions for seperate issues.