Multitouch Example Game SHEEP, question about groups
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Multitouch Example Game SHEEP, question about groups
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.
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.
- Attachments
-
- SheepHerder.zip
- (45.59 KiB) Downloaded 269 times
Re: Multitouch Example Game SHEEP, question about groups
I have no clue what a "something rectangle invisible" could be. Maybe a graphic object is in that group?
Various teststacks and stuff:
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
Re: Multitouch Example Game SHEEP, question about groups
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
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?
Various teststacks and stuff:
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
Re: Multitouch Example Game SHEEP, question about groups
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
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
Various teststacks and stuff:
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
Re: Multitouch Example Game SHEEP, question about groups
Thank you all!