This is a decent first game.
My biggest issue is that the slash is a bit unresponsive. It breaks whenever I move about.
I recommend you try Heartbeast's ARPG tutorial. It's perfect for the type of game you're trying to make here:
https://www.youtube.com/playlist?list=PL9FzW-m48fn2SlrW0KoLT4n5egNdX-W9a
He discusses attack states in part 9, but I recommend you complete the series from start to finish. The information here is seriously valuable.