This article is a stub. It may be incomplete, unfinished, or have missing parts/sections. If the article can be expanded, please do so! There may be suggestions on its talk page. (February 2026)
An example of a walk-cycle, done with Pico

A walk cycle is a series of frames, or costumes, used to create an animation of a walking character. They can range from simple loops[1] to complex mathematics-based movements[2]. They are extremely useful for making movement appear more realistic when used with blocks such as Glide or other Motion Blocks.

Making it Walk

Create a sprite and draw the costumes of the character walking. Then apply the following script to animate walking across the screen:

when gf clicked
go to x: (0) y: (0)
switch costume to [frame 1 v]
repeat (...::grey)//Can be changed for the needed amount of times to be repeated.
  move (...::grey) steps// Move during the animation. Can also be changed for the needed amount of steps to move.
  next costume
  wait (...::grey) secs // Show each frame for 0.2 seconds. Can be changed for the amount of seconds needed.
end

True walk cycles

True walk cycles need to be animated, so they can look like, that they do a real walk cycle. Unlike the code above, the real walk cycle is done within the costumes.

Such a walk cycle can be simply done with this code:

When gf clicked
switch costume to (first costume v)//Can be whatever name it should be.
repeat (...::grey)//Should have the exact number of costumes in the sprite.
wait (...::grey) seconds//Can vary how many seconds should the costume switch.
next costume
Note Note: There are many other walk cycle codes, but some are more complex than the one mentioned above

See Also

References

Cookies help us deliver our services. By using our services, you agree to our use of cookies.