Activity Checklist

To do this we need to first set up a step variable, then every time our moving broadcast is received, increase the variable by one. If the variable goes higher than one (we can test this with the greater than operator >) we reset it back to zero.

    when FLAG clicked
        set [move speed v] to [5]
        set [step v] to [0]

    when I receive [moved left v]
        change [step v] by [1]
        if < (step) > [1] > then
            set [step v] to [0]
        end

    when I receive [moved right v]
    change [step v] by [1]
    if < (step) > [1] > then
        set [step v] to [0]
    end

Don’t forget to move you legs along with your body using your move speed variable.

    when I receive [moved right v]
        change x by (move speed)
        if < (step) = [0] > then
            point in direction (180 v)
        else
            point in direction (165 v)
        end

    when I receive [moved left v]
    change x by ((move speed) * [-1])
    if < (step) = [1] > then
        point in direction (165 v)
    else
        point in direction (180 v)
    end

You could use the same sort of actions to make simple waving arms or even flapping bird wings.