Use W to go to where the mouse is and SPACE to use the sword. The lines get you to the other places.
Hello! I just wanted to show that Scratch can also be used to make open-world games like 2D Zelda. I know that this isn't the best game ever. It doesn't have a use for the sword, the art is horrible, and it's kinda clunky. BUT, I didn't make this to be a good game. I just wanted to make it to show that Scratch isn't just for platforming. Feel free to improve upon my design! Just give me a shoutout in the description.