Setting 2D Light position to player position
Hey! So I'm creating a small 2D platformer game. I'm having player and small lamp which has the Point Light 2D light. I coded so I can pickup the lamp and change the sprite to player with lamp but now i need set the Point Light 2D light position to new one as it should move with player. How can I acces the light position thru script (C#)? If you have any questions than please write in comments.
Comment
Your answer
Follow this Question
Related Questions
Null reference exception in an if statement that checks for it. 1 Answer
2D shader / lighting like Terraria or Starbound 2 Answers
Can't add game object to script 1 Answer
Cant get sound play on input 1 Answer
Color Value is unchangeable. 0 Answers