[squeakland] Can a Morph / (etoys player) follow a connector path ?
K. K. Subramaniam
kksubbu.ml at gmail.com
Fri Mar 16 22:02:32 EDT 2012
On Saturday 17 Mar 2012 1:39:33 AM Mike Stramba wrote:
> I'd like to do something similar to this game in Squeak / Etoys
>
> http://www.gamenet.com/game/air-traffic-chief/
>
> I.e. using a connector, having the motion of a morph follow that
> connector, as the connector is moved while the morph is moving.
You could use a polygon object (open) for the path and add a variable to the
plane that tracks the current vertex cursor and moves along the vertices of
the polygon.
See the tiles in Polygon->polygon category for adding new vertices at the
beginning and removing vertices at the end.
HTH .. Subbu
More information about the squeakland
mailing list