Thread: Tic-Tac-Toe!
View Single Post
Old
Shibble
Junior Member
 
Status: Offline
Posts: 5
Join Date: Sep 2011
Default 10-18-2011, 02:27 PM

Quote:
Originally Posted by Dameria View Post
To make a universal variable you have to create the variable underneath the "World" tab in the object list, the one where every other object branches off of. If you create the variable here, it can be used in any method or object in the program. If you create the variable in any other object, then that variable will only work within that object's methods.
With "underneath" the world tab, do you mean, select World and then click variable. Or really create one underneath is so that it's stands on it's own.
(Sorry to bother you, but i'm new to this)

Edit : Looking at you're code, you have a world.playerTurn in your setsqaure method, but i just can't seem to get that to work. Alice won't let me drag the variable into a if/else stament.



Uploaded with ImageShack.us

Last edited by Shibble; 10-18-2011 at 02:42 PM. Reason: added a pic of my problem
   
Reply With Quote