(Please read all instructions) This project contains custom Player costumes, as well as an upgraded Player Movement block that allows the PLAYER DIR variable to sense eight directions instead of four. It also includes a modified When I receive TICK PLAYER block that sets the sword animations when the player is standing still and Space is pressed. Aside from the additions, i've removed all of the left-facing sprites. Seeing as all of the "-90" sprites were mirrors of the "90" sprites, I wrote code into the Player Movement block that flips the player left when they input left. Because the "0" and "180" sprites aren't always symmetrical, I added in an extra block to flip them back to face right. In the walking alone, this method of painting the player removed the need for 18 costumes, and the same goes for the sword animations. Controlling the costume showcase Use the Arrow Keys, WASD, or the Joystick to move the avatar in any of the eight directions. Release all directional inputs and hold Space or the sword button to see the sword animations. Press and hold the avatar to play the itemget animation. Using the complementary "Player Movement" block To import the new Player Movement custom block into your project, simply backpack it (or the entire Player sprite) and drag the code into your own Player sprite. Then replace the contents of your original Define Player Movement block with the new code, and replace the Try Move block in the new code with the Try Move block from your project. It's important to know that the new Player Movement code will make the player look glitched out if you try to make them move diagonally before importing the diagonal costumes. Importing the new Player costumes Keep in mind that the new Player costumes don't necessarily have to be completely in order (walk0, walk45, walk90, ect) but they do have to be in the order of the same direction. (walk45, walk45.1, walk45.2, and so on.) There's still plenty of possible costumes to make, but I'm not sure I'll be able to get to them all.
At time 9:29 I finish