Red player: W to jump, D to move right, A to move left, and S to attack. Blue player: Up arrow key to jump, right arrow key to move right, left arrow key to move left, and down arrow key to attack.
I made this game really quickly and didn't put much effort into it, because I had just signed into scratch and wanted to make a game right away. Please Heart and star.