Hi, i started work in my first game and i dont know how proceed:
-My ideia is a character with a lamp but idk how make the lamp light move with the flip of character
Correct//Wrong
Hi, i started work in my first game and i dont know how proceed:
-My ideia is a character with a lamp but idk how make the lamp light move with the flip of character
Correct//Wrong
Change the transform position of the lamp when you flip your character
public Light lamp;
public GameObject character;
void Update(){
lamp.transform.position = character.transform.position + new Vector3(1,0,0)*character.transform.localScale.x;
}
thx dude