I have a sphere that I control with W, A, S, D (Forward, left, backwards, right). And the camera follow in top-down view.
Now when I click the mouse button it fire bullets from the sphere, in what ever direction the mouse pointer is on the screen.
And I have a light (spotlight) that follow my mouse pointer, our from the sphere in center screen. So I can rotate the light around my sphere. (kinda like headlights for the sphere)
Now, when I do “Play” in unity program itself, the light follow both my sphere and the mouse pointer, and stay with the sphere as it moves. So that works perfect.
But when I build and run the game, the light fade away once I start moving, and fade back in when I return to the same spot. For some reason, the light is not following the sphere when i build and run the game.
Anyone have ANY idea why this happens?
Sorry about bad english, hard to explain.