When i test the game/script in unity, it moves to the target and stop with correct range that it is supposed to, start attacking and then when i click to move away it keeps attacking. Also the throttle for my attacks doesn’t affect it, im unsure if i missed something.
Also i have been adding everything addil by hand, when i follow in VSC, i dont have the light bulb and certain commands dont work to prefill for my code.
While the animator is still up, instead of in the video it doing the load below locomotion, its doing it constantly below attack. It just keeps attacking and moving at same time.
For some reason while playing with all the settings, the attack animation exit to locomotion was set to a natural exit time of .688. However when i subtracted the last 8, when i click to move away it doesnt continue to attack and move at the same time. Would this be a bug?
It seems unlikely. You should have two transitions from Attacking to Locomotion. One should be the natural exit with no conditions. The second should be tied to a stopattackng trigger and the “Has Exit Time” should be unchecked.
I just got done setting up the death animations and 2nd transition to stop attacking when i click off, now when i just click for my character to attack, the time between attacks still isn’t affecting it no matter how large i place it. Also if my character attacks 2 or 3 times and i click away to cancel during the attack, my character just keeps punching and moving. The only difference is im using the attack 2 instead of attack 3 in video.
ok so this seems to have fixed it. I removed the attack animation in the flow chart all together and reput it exactly like yours and its fixed. However i could swear it looked identical before i removed it. Im not sure maybe it just didnt register properly. ty a bunch for the help.