So by default, player max walk speed is 300 when I click once. When double-clicking, the mxspd is set to 600. I followed [][1] tutorial on double-pressing a button and used it for my P&C. Worked ok, but then I went and got inspired.
I want the player to be able to walk and keep walking by a single click,
Player double-clicks: they run, then single click while running keeps them running at mxspd 600 UNTIL THEY STOP,
Locomotion is reset to default (walk) when single-click after standing,
lastly I want the pcharacter to follow the cursor while it’s being held down for run only.
I borked something somewhere and now any click after the first click sets the player to ‘run’ even though I’m supposed to be walking and I can’t figure out how to get the player to ‘chase’ the cursor.
You will end up confusing yourself if you route different pieces of code to the same group of nodes. It’s better to just write everything out longhand.
One thing I notice, is that setting the count back to zero never happens. It should happen when the velocity is zero, but not be part of the same chunk of code as you have already.
Setting player walk speed to 300 is useful in the example you have, but in the case I’m mentioning, you need that AND setting clicks to 0.
Hey! I didn’t even see your comment. Thanks for the reply and taking the time to look over my nodes. I’ll work on it. I think I may end up going with the ‘locomote to object only when it’s clicked’ method if I can’t put your suggestion into practice efficiently. I’ll be innovative when I’ve learned more. And yes, the damage had already been done as far as confusing myself lol… that’s why I landed here. Cheers, .