Link is here : - YouTube
everytime my player moves, the directional light shines with me
2 Answers
2It’s very hard to see what’s going on but, from looking at your hierarchy, why are both the directional light and the FPS controller childed to the terrain object? I’d sort that out first and see if it solves the problem.
I got it!!! I created a blank material, and dragged it onto my scene. It turned out that I placed my night-time skybox on my terrain and everything turned black. When i dragged the blank material onto it the light started working fine!!!
thank you again this is really helpful. I'm not sure why you weren't able to find the question it should be there. I'll check if its not there and repost it if it isn't
– RavenMats3r
The light does not move. It seems that it's your whole terrain which moves
– HelliumYou could do something like this using UnityEngine; using System.Collections; using UnityEngine.SceneManagement; public class endflag : MonoBehaviour { void OnCollisionEnter2D(Collision2D col) { if (col.gameObject.name == "turtle") { int sceneIndex = SceneManager.GetActiveScene().buildIndex; if (sceneIndex < (SceneManager.sceneCountInBuildSettings - 1)) { SceneManager.LoadScene(sceneIndex + 1); } } } }
– TBruceHi @RavenMats3r, You recently posted a question about loading scenes with buttons. I was getting ready to reply with a sample package and the found the question not longer exists. Do you no longer have a need for this?
– TBruce