Hello guys
Some idea of how to start making a character, that uses sword, like the behavior of the sword, or white weapons (angle and attack), of games "forager", "enter the gungeon", "nuclear throne"...
store.steampowered.com/app/751780/Forager
That's a pretty broad question, but I would suggest taking a look at the Los behavior, and the ray casting feature.
Develop games in your browser. Powerful, performant & highly capable.
Have you completed the Beginner's Guide tutorial? It doesnt deal with swords, but I think it would give you a good starting point.