Hmm, ye, its a good idea to use delta to count time passed.
I've been thinking about combat system implementation almost for a week, and this is what i figured out:
To StateMachine that i have at the moment add "attack" state and use it as a bridge between two messy systems.
I dont know how i could realize that to make it as easy to read as possible, but I'm gonna create combat system that will contain current "Combo_Sheet" (that means that i want to add more than one combo sheet), calculate which hit will be next depending on input and previous hit or state and of course active combo sheet. Also it will allow or prohibit movement durning attack.
I think by using "attack" state I could make movement StateMachine and Combatsystem work together and impact each other. (Lol, it is gonna be something very complex and interconnected :# )
Because i am that one who figured out about this, i cant watch on this idea objectively, so, to avoid remaking, can someone say, is there any issue in my idea?
Also i found out idea in Youtube to create massive as a buffer that will contain previous attacks and types, and using it, i could calculate next attack type. But thats all. I didnt find any other useful information about how to code that. So if you know any useful tutorial about combat system, share it plz.
I can try to code it from scratch, but it will be a little bit painful :/
About that, use timers or delta:
I think i could use one timer to clear buffer that contain previous attacks.
Using delta to count time passed sounds good, but I dont know which mothod will be better. I can create exit and enter functions for attacks that will end timer or change timers wait time. Also i can use delta and do same oparations withot using timer node. Or maybe use them together? Idk
It grows more and more complex, so i started thinking that I am doing something wrong... I already reconstructed my statemachine 3 or more times, and now it is relatively easy to read and orientate in code. at least at the moment.
I dont have enought experiance and youtube is poor on information i want :'( , so any ideas are welcome!