Thread: Tic-Tac-Toe!
View Single Post
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 976
Join Date: Sep 2009
Location: United States
Default 10-18-2011, 04:06 PM

Quote:
Originally Posted by Shibble View Post
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 statement.
You should always be able to drag a world variable into an if/else statement. Just make sure you create the variable in the "world" tab and not in any other object. You click on "world" then you go to "variables" then you create a new variable, and that is a world variable. You can then drag and drop that variable into any if/else statement and compare whatever you want with it.


Check out my best projects so far and please comment:

Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301
   
Reply With Quote