Page 1 of 1

Assigning rotation property to Freehand Polygon

Posted: Mon Sep 03, 2012 1:45 pm
by Surbhit29
Hi everyone,
Just want to know that, can rotation property be added to "Freehand Polygon"? I have been trying lots of stuff lately and just wanted to know that can we add rotation property to the polygon that was created by ourself. I have tried "revRotatePoly". But it changes the shape and size of the object.
Can anyone help?

Surbhit

Re: Assigning rotation property to Freehand Polygon

Posted: Mon Sep 03, 2012 2:46 pm
by Klaus
Hi Surbhit29,
Surbhit29 wrote:Hi everyone,
Just want to know that, can rotation property be added to "Freehand Polygon"?
I don't think we can add a "factory build-in (or not)" property to LiveCode objects 8)


Best

Klaus

Re: Assigning rotation property to Freehand Polygon

Posted: Mon Sep 03, 2012 7:18 pm
by bn
In a reply to another of your questions I uploaded a stack for you that lets you rotate a polygon which you might have overlooked.

http://forums.runrev.com/phpBB2/viewtop ... 093#p61093

You could use the same technique shown there to rotate a Freehand Polygon.
A Freehand Polygon is just as the Polygon made of points that define its shape. You can do the same things to a Freehand Polygon that you can do to a Polygon.


Or I don't understand what you are trying to do.

Kind regards

Bernd

Re: Assigning rotation property to Freehand Polygon

Posted: Tue Sep 04, 2012 8:09 am
by Surbhit29
Hi Bernd,
I downloaded your stack. But when I tried to open, it shows the error "Unable to open Stack, file is not a Stack". And when I tried to open it without double clicking(as was suggested in one of the topic in forum ;)) the error was shown,"File is damaged".

Surbhit

Re: Assigning rotation property to Freehand Polygon

Posted: Tue Sep 04, 2012 8:36 am
by bn
Hi Surbhit,
sorry for that. The stack was in 5.5 format. Livecode prior to version 5.5 can not open it. I uploaded a version that uses the 2.7 stack format. This is for Livecode versions prior to 5.5.
http://forums.runrev.com/phpBB2/viewtop ... 815#p61093

Kind regards
Bernd

Re: Assigning rotation property to Freehand Polygon

Posted: Tue Sep 04, 2012 8:44 am
by Surbhit29
Thanks a lot Bernd,
That helped a lot... :)
Surbhit