But here’s a problem. When character moves left, all of his child objects also change their x-scale to -2 (i’ve made them 2.0 obviuosly up from 1), which I don’t want, I want to rotate only parent object, but not the child.
If you can, help me how to make specific child not to flip with parent. Or all of them.
I’ve been googling for 4 hours now, please, help T_T
Find() its not recommended to use.
You can create a new script “keepScale” attached to every child you want to keep in scale and do something like this:
var originalScaleToKeep : float;
function Start(){
originalScaleToKeep : float = transform.localScale.x;
}
function Update(){
transform.localScale.x = originalScaleToKeep;
}