Hi,
I have a very noob question.
I`m trying to do something like charging skill, but first I would like to learn on something easy. Let`s say I have a variable shift_press = 0 and when I`m holding a key (left shift for example) this variable is growing +1 for every 0.5 second (max 60 fps, so for every 30 fps). When I`m not holding Left Shift anymore, var shift_press is going back to 0.
And here is my question.
I know how it should work, but Lite-C is just completely not logical in this way

Could you assist me with this? How the code should look to work just as I want to?