Fuel = Fuel - Key Down Time
Im trying to create a jetpack fuel calculation, look at the following: The "jump key hold time" is the time in seconds of the jump key down. I have the fuel = 3 and want to substract it from the keydown time. The above screenshot is what doesnt work for now, The Event tick calls every frame, that means every frame it substracts the given value of the key down. So in the end the fuel value is for example "-190324" or something. How can I make the fuel get less with the key hold time ? for example if the fuel is 3 originally, and the key is down for 2 seconds, the fuel slides down to 1 .
asked Feb 27 '16 at 04:59 PM in Blueprint Scripting
Instead of using key down time couldnt you use a timer? You can start(Set) the timer with jump key and then clear it with Jump released.
answered Feb 27 '16 at 05:04 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here