An advanced video showing how you can animate a sprite and control behaviour using veriables. This example makes the dog sprite walk and stop walking.
This is a test video.
Second line in bold.