View Single Post
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 976
Join Date: Sep 2009
Location: United States
Default 02-21-2010, 07:38 PM

Ok here is an example I made. It starts out as night with night vision off, but then when you click space the night vision goes on. When you click space again, the night vision turns off.

Click on the variables tab in "world" to see the boolean I created, and in the method, I made the boolean change to either true or false so that the next time the method is called it will do the opposite. The boolean is like a switch that gets turned on and off.
Attached Files
File Type: a2w NightVision.a2w (169.6 KB, 24 views)


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