# Runner frame animation demonstration
# Forest background by Canva AI
# Sorry, I can't remember where I found the runner
begin
from /demo/runner
canvas width 800
canvas height 600
load forest.png as forest-bg
put forest-bg as background
load forest-foreground.png as forest-fg
put forest-fg as foreground
load forest-flowers.png as forest-fl
sprite create flowers from forest-fl
place flowers at centre
load runner.png as runner frames 5 by 2
sprite create pixie from runner
scale pixie to 65%
animate pixie at 7
place pixie at -100 300 200
after 3 seconds
jiggle flowers 10 10 4
after 13 seconds
jiggle flowers stop
every 25 seconds
vary pixie loc.y with sinewave 70 20 seconds
move pixie to 900 360 in 10 seconds
then
vary pixie loc.y stop
wait for 3 seconds
then
flip pixie horizontally
vary pixie loc.y with sinewave 70 20 seconds
move pixie to -100 300 in 10 seconds
then
vary pixie loc.y stop
flip pixie horizontally