Assigning rotation property to Freehand Polygon

Creating Games? Developing something for fun?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Surbhit29
Posts: 80
Joined: Thu Aug 16, 2012 1:25 pm

Assigning rotation property to Freehand Polygon

Post by Surbhit29 » Mon Sep 03, 2012 1:45 pm

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

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Assigning rotation property to Freehand Polygon

Post by Klaus » Mon Sep 03, 2012 2:46 pm

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

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4002
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Assigning rotation property to Freehand Polygon

Post by bn » Mon Sep 03, 2012 7:18 pm

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

Surbhit29
Posts: 80
Joined: Thu Aug 16, 2012 1:25 pm

Re: Assigning rotation property to Freehand Polygon

Post by Surbhit29 » Tue Sep 04, 2012 8:09 am

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

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4002
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Assigning rotation property to Freehand Polygon

Post by bn » Tue Sep 04, 2012 8:36 am

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

Surbhit29
Posts: 80
Joined: Thu Aug 16, 2012 1:25 pm

Re: Assigning rotation property to Freehand Polygon

Post by Surbhit29 » Tue Sep 04, 2012 8:44 am

Thanks a lot Bernd,
That helped a lot... :)
Surbhit

Post Reply

Return to “Games”