Treating group of Objects as one Object
Moderators: heatherlaine, kevinmiller, robinmiller, malte
Treating group of Objects as one Object
Hello everyone,
I have an object "Oval" which is opaque and in that Oval i have different other objects such as line, rectangle, polygon etc. Now I want is to rotate that Oval such that when it rotates all the objects that are inside that Oval change their position according to the angle of the rotation.
Its like treating all these objects as one object.
Or treating it like an image.
Can this be achieved?
I have an object "Oval" which is opaque and in that Oval i have different other objects such as line, rectangle, polygon etc. Now I want is to rotate that Oval such that when it rotates all the objects that are inside that Oval change their position according to the angle of the rotation.
Its like treating all these objects as one object.
Or treating it like an image.
Can this be achieved?
Re: Treating group of Objects as one Object
Do you want to change the position only? Or do you also want to rotate the objects? If the former, this can be done, the latter is a lot more difficult.
All the best,
malte
All the best,
malte
Re: Treating group of Objects as one Object
Hi Malte,
Thnx for the reply. I just want to change the position of the objects according to the rotation.
Surbhit
Thnx for the reply. I just want to change the position of the objects according to the rotation.
Surbhit
Re: Treating group of Objects as one Object
Cheers,
Malte
Re: Treating group of Objects as one Object
Thnx for the code Malte.
But when I try to open the code it is showing the error
"Unable to open stack. Stack is corrupted. Check for backup files"
Surbhit
But when I try to open the code it is showing the error
"Unable to open stack. Stack is corrupted. Check for backup files"
Surbhit
Re: Treating group of Objects as one Object
And when I try to open it through livecode, it is showing the error "File is not a stack"
-
- Livecode Opensource Backer
- Posts: 328
- Joined: Mon Dec 05, 2011 5:34 pm
- Location: Thailand
- Contact:
Re: Treating group of Objects as one Object
Hi Surbhit -
You do realise the file is Not a livecode file, but a Zip file containing a livecode file. You need to unzip it first. Internet 101!!
Cheers,
Dave
You do realise the file is Not a livecode file, but a Zip file containing a livecode file. You need to unzip it first. Internet 101!!
Cheers,
Dave
Coding in the Sun - So much Fun.
Visit http://electronic-apps.info for released App information.
Visit http://electronic-apps.info for released App information.
Re: Treating group of Objects as one Object
I know that already.
And after unzipping it only I have tried to open it in livecode
And after unzipping it only I have tried to open it in livecode
Re: Treating group of Objects as one Object
Waht versions of LiveCode are you using?
There was a change in fileformat in LiveCode 5.x , so 4.x cannot open these new stacks!
Maybe this is the problem?
There was a change in fileformat in LiveCode 5.x , so 4.x cannot open these new stacks!
Maybe this is the problem?
Re: Treating group of Objects as one Object
It is indeed a 5.x stack. I can re upload a legacy version if necessary.
All the best,
Malte
All the best,
Malte
Re: Treating group of Objects as one Object
Please upload it.