Thanks, Klaus, and sorry Michael. I forgot. I have sine and cosine functions in the stack script:
function sine tAngle return sin(tAngle /180*pi) end sine Similarly for the cosine. Jim > Hi Michael, > > Am 19.01.2014 um 16:41 schrieb Michael Kristensen < > michael-kristensen at dsa-net.dk > >: > > > > hi Jim > > > > > > > > ... > > > > I put it in a button in alejandros stack and get errors. > > > Replace cosine with COS and sine with SIN in the handler: > ... > > > add L * cos(j*tAngle) to dx > > > > subtract L * sin(j*tAngle) from dy > > ... > That does the trick :-) > And of course you need a polygon graphic named "polygon"! > > > > ... > > > > > > > > Michael > > > Best > > Klaus > > -- > Klaus Major > > http://www.major-k.de > klaus at major-k.de > > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode