How To Create A Character Walk Cycle in Scratch
In 2 Dimensional games and animations the illusion of motion is created by carefully sequencing slightly different still images at a speed quick enough, where the human eye will fill in the gaps between. This is usually 24 fps (frames per second).
Here's an example, the 5 images below are all still images, but when they are programmed to change quickly the character appears to walk, especially when a forward motion is added.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrtTC05rLDmA1YQZGsm73LfJNdQbjuR1EG5UtaGBKtZ62sgsma3xg1_A3RP69qn8zwGvrw1b4W_0ujvy1caR8eNezM95f1KL_2OVEHEnRdKkGNSByEEfKtujKXjCalBY6SNbbTMdg87Zw/s1600/boy4-walking-b.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEji_P3FQGt0ypyRZCvwGIafqbRKlg9PXPQ1w1YDTVsRNPMi9vHKQv6XNxV-9bpJJ-YrGZ15cHNODef22jKQFRxY0-vswWhIJspKkG8lVRhDDyC2My3m-U4VXYgHx7GTZ5fqqoFOMWopLkY/s1600/boy4-walking-c.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2Amke6aLGULSoaO-JyLa2HzTXS-YhduaRBPp9-_d_UiU0TGTaLhj2hJXBRcMexGTpWkKq_AmK0v6Kx_zPqLy2-vP8ccYOpkUMqkgdSWRQSvfobMOLHFxnOQkpJlVe3_j1-kKuDhAVf00/s1600/boy4-walking-d.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDjTMs2dKHXeXG4ipImqpbGfHrwum-WgSLxVomAq2u_1lJ25NuVV5d9vx2GxJv_V_LGRqspl3XO0oZTDpri8_JS97hpbpAPuO8rU_lP3cWEGM3Cbcg9NkRyTJw-ufbTVIMGeGRfx7UUok/s1600/boy4-walking-e.png)
This is a basic sample (below) showing how character costumes can be created and arranged to simulate movement in a 2D game. Press the green flag to start.
The motion is created by this block of logical programming along with the character costumes shown above.
Here's an example, the 5 images below are all still images, but when they are programmed to change quickly the character appears to walk, especially when a forward motion is added.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrtTC05rLDmA1YQZGsm73LfJNdQbjuR1EG5UtaGBKtZ62sgsma3xg1_A3RP69qn8zwGvrw1b4W_0ujvy1caR8eNezM95f1KL_2OVEHEnRdKkGNSByEEfKtujKXjCalBY6SNbbTMdg87Zw/s1600/boy4-walking-b.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEji_P3FQGt0ypyRZCvwGIafqbRKlg9PXPQ1w1YDTVsRNPMi9vHKQv6XNxV-9bpJJ-YrGZ15cHNODef22jKQFRxY0-vswWhIJspKkG8lVRhDDyC2My3m-U4VXYgHx7GTZ5fqqoFOMWopLkY/s1600/boy4-walking-c.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2Amke6aLGULSoaO-JyLa2HzTXS-YhduaRBPp9-_d_UiU0TGTaLhj2hJXBRcMexGTpWkKq_AmK0v6Kx_zPqLy2-vP8ccYOpkUMqkgdSWRQSvfobMOLHFxnOQkpJlVe3_j1-kKuDhAVf00/s1600/boy4-walking-d.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDjTMs2dKHXeXG4ipImqpbGfHrwum-WgSLxVomAq2u_1lJ25NuVV5d9vx2GxJv_V_LGRqspl3XO0oZTDpri8_JS97hpbpAPuO8rU_lP3cWEGM3Cbcg9NkRyTJw-ufbTVIMGeGRfx7UUok/s1600/boy4-walking-e.png)
This is a basic sample (below) showing how character costumes can be created and arranged to simulate movement in a 2D game. Press the green flag to start.
The motion is created by this block of logical programming along with the character costumes shown above.
programming code for the sample animation above |
How To Create A Character Walk Cycle in Scratch
Reviewed by Opus Web Design
on
October 20, 2014
Rating:
![How To Create A Character Walk Cycle in Scratch](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEie8iySDt61e4XVeyESbEWk5C09DOunBSutBbIsKJMWWXEWy0DJJTv1ERLpRVpHpgklhsbqu37wRXqyzkf98PZ82paMgRzkQYp9XMMmv4xgDrGWw_MyMnwntwZ0ayyzCCfQSjvIIkN4qK8/s72-c/boy4-walking-a.png)