One Actor Checking Attribute Of Other Actor?
richcoy
Member Posts: 211
Hi, I'm working on a math game for kids where they drag number blocks over pictures that have sets of items on them. So, a number "5" block would be a correct fit over a picture of five carrots for example.
I have it worked out as long as there are not two of the same number on the stage but if there are two 5's for example only one of the "5" blocks is recognized as the right answer and the other "5" block is recognized as wrong.
My question is, is there a way for one actor to check a value of another actor? So I could have the number blocks and the image blocks have an "My Value" attribute that they check against each other? The values are all stored in tables so I don't think it's possible to use labels since the objects on the stage get their values at run time.
Thanks for any direction you can offer.
Rich
I have it worked out as long as there are not two of the same number on the stage but if there are two 5's for example only one of the "5" blocks is recognized as the right answer and the other "5" block is recognized as wrong.
My question is, is there a way for one actor to check a value of another actor? So I could have the number blocks and the image blocks have an "My Value" attribute that they check against each other? The values are all stored in tables so I don't think it's possible to use labels since the objects on the stage get their values at run time.
Thanks for any direction you can offer.
Rich
Comments
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
I was also thinking that maybe spawning the actors into the scene would allow me to use actors that have labels. There is only 12 actors total on the stage at a time, 6 image and 6 number cubes.
Rich
Seems like that route would work if there were multiple "5" in the scene at a time.
I'm probably making this harder than it has to be. lol.