Hi, can someone please help me, I’m new to Unity and game design and doing it just for fun, but at the moment it’s not much fun …
I downloaded the evaluation copy of Unity and are trying it free for 30 days (iOS), so I setup a scene and loaded the Player Relative Setup, (player in the middle and joysticks either side) I wrote a animationcontroll.js script attached it to my model and edited the player relative control script and added my Idel, Walk and Run animations when the joystick was above or below a value, and all worked fine, then I came across prefabs, so I purchased the 3rd person overview cam prefab, I’ve installed and running it and tried editing the PlayerCameraRelative.js script and adding my animation calls, like below.
//Calculate and normalize movement vector
var movement : Vector3;
if(movementJoystick) //If movement joystick exists
{
movement = movementJoystick.GetAxis(); //Get movement joystick axis
animateCntrl.Walk();
}
But he stats walking soon as I press play, and don’t stop even with no joystick input, can you please tell me what I’m doing wrong, Thanks.