Using an array or parameter with an event handler (Need Help) -
10-15-2009, 01:16 AM
Hello,
I'm creating a tic tac toe game with 9 squares and hidden x's and o's and 2 players. I'm trying to get the player to select a square but have run into an issue with Alice (I know how this would be coded conceptually but cant figure it out in alice)
I have the WHEN MOUSE CLICKED ON anything DO none
I want to say WHEN MOUSE CLICKED ON one of the objects of an array DO revealXO
but cant seem to do that with alice
I also tried WHEN MOUSE CLICKED ON anything DO set parameter value to the clicked on object
But couldnt do that either.
Third try:
WHEN MOUSE CLICKED ON anything DO checkBox
Using a loop, I wanted to check to see if the object clicked on was box1, 2, 3, etc
How can I get Alice to set the value of the parameter to the object clicked?
Thanks
|