Re: Can a Morph / (etoys player) follow a connector path ?

"K. K. Subramaniam" <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.squeak.squeakland
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.