Wanda

Date:    Tue, 24 Jun 1997 02:11:34 +0000
From:    Jim Collins <jcollins@mediaband.com>
Subject: Wanda
To satisfy the throngs (2) curious to know how little wanda
http://www.mediaband.com/mediaband/collins/wand.html
does her stuff here's all she wrote. No actors, no objects, no parents or children, just one list and a few puppets:

------
global WandaLoc

on startmovie
  set WandaLoc to []
  repeat with thisSprite = 1 to 24
    set the puppet of sprite thisSprite to true
    set the loc of sprite thisSprite to theMouseLoc()
    add WandaLoc, theMouseLoc()
  end repeat
end startMovie

on theMouseLoc
  return point(the mouseH, the mouseV)
end

on idle
  tracewanda
end

on tracewanda
  set the loc of sprite 1 to theMouseLoc()
  set newLoc to [theMouseLoc()]
  repeat with thisSprite = 2 to 24
    add newLoc, the loc of sprite thisSprite
    set the loc of sprite thisSprite to getAt(WandaLoc, thisSprite - 1)
  end repeat
  updatestage
  set wandaLoc to newLoc
end
------
Maybe not rocket science, but sometimes easy is better.

Jim Collins, Smoke & Mirrors
http://www.mediaband.com/mediaband/collins.html