Hi Jean,
I want to apologize for how I started on the forum...by having a big whinge lol and I want to thank you for your advice. I decided, since you took the time out to write to me, I will give you the respect to take the time out to watch Unity's tutorials again.
I began to understand concepts that the first time I watched months ago, went right over my head and I also realised what I had to do.
- The first issue I was having was using the animator sync script. I still do not know how to make it work correctly.
- Second issue, my character would walk on the spot when playing the walk animation, even with "Apply Root Motion". Even when basing my playmaker scripts the way you had Ethan set up. I realised even though you did not have a "Character Controller" component on him...I needed one on my character. You have to tell me how you did that bro lol
- Third issue, I ran into difficulty changing the animations to play from walk to run. I did not know how to make the "speed" float increase depending on the length the "walk/run" button was pressed for. So I made a "Get Button Down" action (ctrl) to have my character run and it works!
You solved my problems bro and I like that you did not do my "homework" for me but helped me discover the answers. For that I am very grateful.
Could I please use your services once more though?
- Do you have any tutorials on the animator sync script I could look at other than the basic one that does not actually animate anything? Is this script designed to just "sync" with mecanim and not actually take any actions, events or variables?
- Could you example why/how Ethan (in your example) is able to move about without a "character controller" component or a "Controller Simple/Move" action?Is a character controller required? Do I need a "Get Axis Vector" for each action that calls an animation?
- How do I make the "speed" float variable slowly increase so I can transition from walk to run at a slower rate? Currently I have a parameter named "speed" in the animator controller. I have the following variables in playmaker "Speed" set to 10, "RunSpeed" set to 6 and "WalkSpeed" set to 3.
I have a Set Animator Float with a parameter of "speed" and the value to "Speed" (making it 10). I have this action set on both walk and run states. I have a Controller Simple Move with the Speed set to "WalkSpeed" and "RunSpeed" respectively.