- Home /
help with animation and movement?,i want to sort out my animation in my movement?
i am currently making a multiplayer fps game, i have got my model and animation. but when it comes to movement and using the animations for example: walking and running. i have trouble:
my current problem is that i have made a script for my animation and an animator which links my animations for example idle and walking. the script works and allows my key press of w to trigger walking. but the images don't loop, i have to continuously press the w key for it to restart the animation, unlike most fps games where you can just hold the w key and it will move non stop. i have loop time already checked, but for some reason the animator makes it one state.
i used this tutorial for the code, which even has the same animations which i got from Mixamo, he doesn't get the problem, can some one help me. link:https://www.youtube.com/watch?v=q-FPR1I2B74,i have been trying to make an fps game, so far i have got a model and animations but when it comes to movement i am currently struggling. i have been able to make movement scripts before for my player, but when it comes to my animations i am unable to add them.
i have tried to use the animator, by using bool i made a script that made my key press enable the animation, for example: pressing w would trigger walking animation. but the problem is i have to press the w key multiple times, as my animation would stop looping. i have enabled loop time already. but for some reason the animator makes have one state.
can someone help be able to loop the animation automatically if i am continuously holding the w key.