View Single Post
  #2  
Old 08-25-2011, 12:23 AM
sleiN13 sleiN13 is offline
Member
 
Join Date: Dec 2008
Posts: 83
you could use a global variable to save the status of the door. Or you could assign this variable directly to the door during construction.

puerta.abre = False (assuming abre is open )

then in the mouse even function check if the door is open or not and execute the appropriate function to open or close it.
Reply With Quote