#I did post a video of it in animation I
1 messages · Page 1 of 1 (latest)
im suspecting is that you have 2 boolean that got true at the same time.
this play the jump animation right?
yes
i would suggest you should play 1 state animation at a time. try to delete/commend this, and play is it still the same?
also where this script attached to?
the script itself is attached to an empty parent object with the slime object as child
I commented it out and now the slimes seem to only go in one direction
yes but is it still squished?
yes
can i see the anination preview? when slime jump.
waait why don't you attached this on the slime itself? is there a reason to do this?
currently the script works by referencing the parent object, and then publicly adding a gameobject, but I can change it if you think that is not right
this is the animation itself- I changed it so that the slime doesnt get squished at the top last night but the bug is still happening
aaah that's your model. ok it's fine to do this.
can you commend all of this? you can select them and use CTRL + K + C for a shortcut.
just leave this one, and hardcode isWalking
bool isWalking = true;
if(isWalking)
{
anime.GetComponent<Animator>().Play("JumpLoop");
transform.position += transform.forward * moveSpeed * Time.deltaTime;
}
i want to make sure that your Animation play correctly on playMode, if it's still squished, then commend your
transform.position += transform.forward * moveSpeed * Time.deltaTime;
just let the slime jump.
here they are
with this commented out they are still flat :/
then your problem is not on the code itself. we tried to commend the suspecting problem on the code and yet they are still flat.
yeah I agree. thanks for the help !
In case you were wondering what it was, I figured out that I needed to turn "loop pose" off in the jump animation and now it is working fine!
That's good to hear have a great day!
