So, I’ve created an animation of my character putting his sword straight out. Now, I want to spin the character until the player releases the button… The position should be reset when the button is let go (getkeyup(keycode.alpha1) would be used here. The question is, how can i record all the player stats before I go into the rotation and also how Will I rotate the player? I just finished solving a huge problem and tbh am a little lazy to look in this moment. Of course, as always if nobody wishes to respond i’ll keep digging.
if(Input.GetKey(KeyCode.Alpha1))
{
Debug.Log ("Should Be Skill Attacking");
animation.Play ("skillAttack");
}
I am having no luck... The below script does nothing. void Update () { if(Input.GetKeyDown(KeyCode.Alpha1)) constantForce.relativeTorque = Vector3.right * 2; //transform.Rotate(Vector3.right, constantForce.relativeTorque * Time.deltaTime); // transform.rotation = Quaternion.Euler ( transform.rotation.x++, transform.rotation.y, transform.rotation.z ); }
I am having no luck... The below script does nothing. void Update () { if(Input.GetKeyDown(KeyCode.Alpha1)) constantForce.relativeTorque = Vector3.right * 2; //transform.Rotate(Vector3.right, constantForce.relativeTorque * Time.deltaTime); // transform.rotation = Quaternion.Euler ( transform.rotation.x++, transform.rotation.y, transform.rotation.z ); }
– KuPAfoo