Page 1 of 1
Multitouch Example Game SHEEP, question about groups
Posted: Wed May 25, 2011 6:32 pm
by cu3e
Hello, I try to understand the Multitouch Example Sheep Game from Ben. Sadly there is only this short youtube video and no real tuturial. So far I understand the code but what I understand not, is the following.
The Sheep in the stack, is a group with something rectangle, invisible. What is that? How can I regroup the sheep to that, once I ungrouped it? It does not work without this group.
The stack can be found under the user stacks. I attached it here aswell.
Re: Multitouch Example Game SHEEP, question about groups
Posted: Wed May 25, 2011 6:47 pm
by BvG
I have no clue what a "something rectangle invisible" could be. Maybe a graphic object is in that group?
Re: Multitouch Example Game SHEEP, question about groups
Posted: Wed May 25, 2011 7:15 pm
by cu3e
Sorry for my bad english. The Sheep is grouped with a bigger (invisible) object. When I click on the sheep, a large area is selected. When I ungroup the sheep. There is only the sheep left. The large area is gone. Do you understand what I mean?
Re: Multitouch Example Game SHEEP, question about groups
Posted: Wed May 25, 2011 9:06 pm
by BvG
It's a group, with locLock set to true. Nothing beyond that, but it's used in the code as the container for all the cloned sheeps the game creates. Every time a new sheep appears, it is created into that group. What exactly is it you do not understand in the workings of the stack?
Re: Multitouch Example Game SHEEP, question about groups
Posted: Wed May 25, 2011 9:29 pm
by cu3e
Ok thank you that make sense. I ungrouped the sheep. How can I group it again with the LocLock?
Re: Multitouch Example Game SHEEP, question about groups
Posted: Wed May 25, 2011 9:40 pm
by BvG
i suggest looking at the original stack, or the card code, about how the group is named there (you need to use the same name). the lockLoc toggle is in the inspector on the "Size & Position" tab. Or you can use the message box:
Code: Select all
set the lockLoc of group "properGroupNameHere" to true
Re: Multitouch Example Game SHEEP, question about groups
Posted: Wed May 25, 2011 9:54 pm
by cu3e
Thank you all!