action mapping logic problem
I set up some code to detect when I pressed a button and when I released it (to make it easier while coding only) then I set up some other code to know if I am idling, walking or sprinting, and checked this out with printString nodes on the event tick. I set up this on the "W" key and it worked just fine, but when I copy the code to other keys it doesn't work at all. here is my blueprints, https://blueprintue.com/blueprint/xjoogmaz/
hope someone can help me cause this doesn't make any sense.
asked Jan 21 '19 at 07:06 PM in Blueprint Scripting
All W-S and A-D change the Walk/Sprint/Idle values when pressed and released, and they interfere with each other, because Axis input runs on tick, i.e. all the time. E.g. You press W and D and you walk forward and right, but then you release D and it sets Walk to False, but W is still pressed, and every tick Walk is set to True and False right away.
answered Jan 21 '19 at 07:24 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here