Lock jump button while in air?
Hello, I am very new to programming and need to know how I can lock the jump button while my character is in the air. Currently my character uses energy to jump and if I keep pressing the jump button while in the air it keeps using energy. How can I prevent this?
asked Nov 28 '15 at 08:23 PM in Blueprint Scripting
Add a variable called UseEnergy. Right before you subtract .2 energy put it in an if statement, and only subtract if true. After you subtract away the .2 energy set it to false. Right click and add an event on landed and then set the variable to true.
answered Nov 28 '15 at 08:49 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here