- Home /
i'm trying to create a combo system
so basically I'm trying to create a system that when I click the mouse button it does one attack and it returns to the idle state. then have an option to click the mouse button again within a certain time frame of the first attack so then it can do a second attack animation. but when i do it for some reason one mouse click it registered twice and it triggers both of the triggers of attack1 and attack2 for no reason.
a screenshot of my combat code and animator is below.
also i forgot to mention for some reason my one mouse click for some reason activates both attacks when I should've had to click the mouse again or wait for the next attack time to be equal to 0
Answer by eplaygame · Apr 18, 2021 at 12:01 PM
I was facing the same problem. Basicly, this approach is the first that I came up with but... It will not work reliably and probably just won't work. It is very (!!VERY!!) complicated method having timers and I recommend You to watch this tutorial.
https://www.youtube.com/watch?v=e2PRI19Igbo
You really will produce many more problems that will very difficult to solve when you adding if statements + timers + animation events.
ok i have actually decided to use your recommendation and after a little thinking during the video i managed to modify my current weapon script to that one so cheers for that
Answer by kassikgaming · Apr 18, 2021 at 01:11 PM
yeah i watched this tutorial and it did not help what so ever. ill try other ways and see if any of them work but im open to any other suggestions
Your answer
Follow this Question
Related Questions
Accessing local system ( File Browser ) 2 Answers
Points based combat system | help 0 Answers
3D Combo system? 1 Answer
How to make a continuous "combo" system 2 Answers