Stencyl: Creating a walking animation from Piskel
TLDRThis tutorial demonstrates how to create a walking animation for a game character in Stencyl using Piskel, a pixel art tool. The process involves duplicating frames, adjusting pixel sizes, and refining the character's movement to achieve a natural walking cycle. The video also covers exporting the sprite sheet, flipping the animation for a left-walking version, and importing the new graphics into Stencyl for testing. It briefly touches on adjusting collisions and suggests applying similar techniques for other animations like jumping.
Takeaways
- ๐ Duplicate frames to create a simple walking animation without redrawing each time.
- ๐จ Convert the animation to 32 pixels for easier working and editing.
- ๐ฃ Adjust the leg position to create the illusion of forward and backward movement.
- ๐๏ธ Use shading to enhance the appearance of the walking animation.
- ๐ Export the sprite sheet in a 2x2 layout to match the number of frames.
- ๐ Flip the frames for a 'walk left' animation from a 'walk right' animation.
- ๐ Save and import the sprite sheets into Stencyl for use in the game.
- ๐ข Remember to resize and adjust the scale of the images if necessary.
- ๐ Correct the collision settings for 'walk left' and 'walk right' animations.
- ๐ ๏ธ Apply the new graphics to the game's behaviors to replace the old ones.
- ๐ Understand that changing other graphics, like jumping or running, follows similar steps.
Q & A
What is the purpose of duplicating frames in the animation process described in the transcript?
-Duplicating frames simplifies the animation process by reducing the need to redraw the character for each frame, ensuring consistent timing and making the animation smoother.
Why does the speaker decide to convert the animation back to 32 pixels?
-The speaker prefers working with 32 pixels because it was easier and they liked the results, suggesting a preference for a specific level of detail and control in the animation.
How does the speaker approach creating the walking animation for the character?
-The speaker creates the walking animation by adjusting the character's leg positions to simulate forward and backward movement, and then adjusting the shading to enhance the visual effect of the steps.
What is the significance of exporting the animation as a sprite sheet with a specific layout?
-Exporting as a sprite sheet with a 2x2 layout organizes the animation frames in a grid, which is necessary for the animation to be correctly displayed and looped in the game engine.
How does the speaker create a walk left animation from the walk right animation?
-The speaker creates a walk left animation by flipping all the frames of the walk right animation, which effectively mirrors the movement for a leftward walking motion.
What is the importance of resizing the animation frames and why might it be necessary to adjust the size?
-Resizing the animation frames is important to ensure they fit within the game's design parameters. Adjusting the size might be necessary if the frames were initially too large or too small for the game environment.
Why does the speaker mention multiplying everything by ten and what was the consequence of forgetting to do so?
-Multiplying by ten might be a scaling factor to adjust the size of the animation frames. Forgetting to do so resulted in the need to resize and re-export the frames to correct the issue.
What does the speaker mean by 'collisions' in the context of the walk left and walk right animations?
-In the context of game development, 'collisions' refer to the boundaries or hitboxes of the character that interact with the game world. The speaker forgot to adjust these for the walk left and right animations.
How does the speaker suggest changing the jumping or running animations, and why is it similar to the walking animation process?
-The speaker suggests using the same concepts and ideas from the walking animation to change the jumping or running animations, implying that the process of adjusting frame positions and timings is consistent across different types of movement.
What is the final step the speaker describes in integrating the new walk animations into the game?
-The final step is to go to the game's behaviors section and replace the old walk animations with the new ones, ensuring that both walk right and walk left animations work correctly in the game.
Outlines
๐จ Animation Frame Duplication and Pixel Art Adjustments
The speaker discusses the process of animating a character by duplicating frames to simplify the animation workflow. They mention converting the animation from 4 frames to a 32-pixel format, which they find more comfortable. The animator then describes adjusting the character's limbs and shading to create a walking motion, emphasizing the importance of timing and simplicity in animation. They also touch on exporting the animation as a sprite sheet in a 2x2 layout and importing it into a software tool called 'stencil' for further use. The process includes flipping the frames for a 'walk left' animation and resizing the images to correct proportions.
๐ Implementing New Graphics and Adjusting Collisions
In this paragraph, the focus shifts to integrating the newly created walk animations into a game or software. The speaker explains how to replace existing graphics with the new 'walk right' and 'walk left' animations within the software's behaviors. They also mention testing the animations to ensure they work correctly, including the idle states. However, they realize that they forgot to adjust the collision settings for the new walk left and right animations, which is a necessary step. The speaker suggests that the audience should apply the same principles used in previous animations to make these adjustments, also hinting at the need to adjust jumping or running animations with similar techniques.
Mindmap
Keywords
๐กPiskel
๐กAnimation
๐กSprite
๐กFrame
๐กPixel Art
๐กSprite Sheet
๐กStencyl
๐กDuplicate
๐กCollision
๐กBehavior
๐กExport
Highlights
Creating a walking animation by duplicating frames for simplicity.
Choosing a frame count for the animation, opting for four frames for ease.
Converting the animation to a 32x32 pixel size for easier manipulation.
Recreating the character's step with a specific shade to maintain consistency.
Adjusting the leg position to create the illusion of forward movement.
Using previous shades to enhance the visual appeal of the walking animation.
Creating a backward leg movement to complement the forward motion.
Switching colors to erase and refine the animation details.
Exporting the animation as a sprite sheet with a 2x2 layout.
Downloading and importing the sprite sheet into Stencyl for further use.
Creating walk left animation by flipping the walk right frames.
Adjusting the character's height in frames to add a bouncing effect.
Importing and setting up the walk left and walk right animations in Stencyl.
Multiplying the size of the animation to fit the game's scale.
Resizing and re-exporting the animations to correct the scale issue.
Adding the walk animations to the character's behaviors in Stencyl.
Testing the new walk animations to ensure they work correctly.
Adjusting collision settings for walk left and right animations.
Encouraging users to apply similar concepts to other animations like jumping or running.