Three-Framed Walking
A Plotscript by Twin Hamster

I can remember trying to use the Three-Framed Walking script made by 'PCI' on the Moglery quite a few times before.

It was really neat, but I always experienced the same few problems with it:

Being generally dissatisfied, I realized that other people interested in 3-framed walking may have been discouraged by these problems and given up (like me).

My Solution: A revisit to the 3-framed step.

Here's what you need for your own smooth 3-framed walk:


Two walkabout sets.
This is still the same as the tutorial above.
Three frames is essentially four frames (Stand, right foot, Stand, left foot). 

 Global variable, begin
1, Current Step
end
A single global variable, Current Step.

 

 Plotscript, Each-Step Scripts, begin
Alternate-Feet
end
As the name suggests, this will be your Each-Step script.
It simply holds other scripts inside of it (Note scripts, not Plotscripts)
Included just for convenience, in case you want other effects to happen from Each-Step.

script, Alternate-Feet, begin 
if(Current Step << 2)
then(Increment (Current Step))
if(Current Step == 2)
then (Current Step := 0)

if(Current Step == 0)
then(
wait (get hero speed (me))
set hero picture (me, 1)
set hero frame (me, 0)
)

if(Current Step == 1)
then(
wait (get hero speed (me))
set hero picture (me, 2)
set hero frame (me, 0)
)

end
This script cycles the Global Variable [Current Step] through 3 possible values (0, 1, and 2).
A value of 0 puts your picture on the first set of walkabouts (Shown as Picture set 1 above).
A value of 1 puts your picture on the second set of walkabouts (Shown as Picture set 2 above).
A value of 2 resets the variable back to 0 to begin again.

 
Compile it, pop [Each-Step Scripts] into its proper position on the maps you want it active on, and you're all set!

Hoping to see more games with more than 2 frames!